Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Dynamic

JQuery Dynamic Height and Width

28 November, 2012 | jQuery | By: Michael Adams

I was working on a few pages where I wanted the content to automatically fill the height/width regardless of browser size. I set my DIV tag with a id of “Content” and then created the following JQuery automatically scale the DIV tag to the appropriate height and width. I only have one DIV tag that required dynamic height and width so I was able to just subtract the height and width of the other elements on the page. Replace N with the height/width of the other elements on the page. The JQuery: JQuery Break down: I use $(window).height() to get [Read More…]

Modifying the ASP.NET GridView Paging Control

29 March, 2012 | ASP.NET, C#. NET | By: Michael Merrell

The paging control that is built into the ASP.NET grid view is very handy indeed, however the template controls for the grid view leave some to be desired. If you need to add something or get more control over how the paging control is displayed it can cause a great deal of head ache trying to figure out the best way to do so. In my case I needed to add a simple text value before the paging numbers to show that they were page indicators. Below you will find the code I used to add a ‘Page’ label to [Read More…]