Implementing Image Zoom using MS Ajax Slider Control
- 2 minutes to read
The MS Ajax Control Toolkit provides a lot of cool controls that we can use to implement nifty effects in our applications.
One of the controls we are gonna play with today is the Ajax Slider Control.
The Slider Control Provides a way for the user to measure arbitrary values and set them using a cool Slider.
The Slider control provides the value of the current Slide and lets you do stuff with it .
Some of the *stuff* we will try today is to implement a Zoom feature for images .
The Slider control binds to an asp:textbox or an asp:label to show the current value of the Slide.
It would be great if you could associate the control with arbitrary HTML Elements and associate the slide with their properties.
You can do that by changing the Code of the Slider Control by downloading the code from the CodePlex Website.
Today , I will not go into how you can change the control , we will talk about using the Base control to modify the Height and width of an image control
so that it looks like we are zooming into and out of an image using the Slider.
See Demo Here