Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Control

HTML5 Canvas and ASP.NET Image Control

5 December, 2012 | ASP.NET, HTML5 | By: Michael Adams

I was playing with the HTML5 Canvas element trying to allow client side zooming/panning/rotating of an image. I finally figured out an implementation that will accommodate the zooming and I am still working on the panning/rotating pieces of the functionality. I use a SELECT element to act as the scale (Zoom) for the image. Even though it is not present in the code snippet below, I use a Generic Handler to populate my ASP.NET Image control. The HTML5 canvas uses the ASP.NET Image control as the source of the image and then I can use JavaScript and the Canvas element [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…]