ASP.NET image zoom implementation

Share on FacebookThere is a follow up post on this subject here.
If you are keen on new tricks used in developing cutting edge web sites, you will have undoubtedly come across sites which rely heavily on interactive flash animations to implement zooming. It works quite well for most of the sites I have seen that do it very well. The downside of this approach is that, the animations will have to be created for every product (in the case of an ecommerce site) at the initial stage, and subsequently for a dynamic site, every new product added to the databse will require an animation.

This is where ASP.NET 2.0 and AJAX framework comes in. Prior to ASP.Net 2.0 and Ajax, it would have been very difficult to implement a zooming system without relying heavily on javascript. But with .Net 2.0 and Ajax, this is very much reduced to a few lines of carefully crafted code.

The main power behind the implementation of such an image zoom system is the ajax UpdatePanel which will allow for refreshing the display of the image at an enlarged or reduced size without full page postbacks. However, the key to implenenting suc a system will be an asp.net handler (.ashx) file which will be responsible for the actual rendering of the image. The handler will typically rely on an object class to provide the necessary image resizing logic.

As a recap, to implement such a live zooming system, we will need the ff:

1. A class object with Graphic manipulation logic to handle image resizing.
2. A handler class to handle dynamic image rendering, this will be used as the url to image controls,
eg: <img src="~/imageZoomHandler.ashx?image=imagename&size=100" />

3. An asp.net webform with an updatePanel containing an image control.
The Updates to the UpdatePanel will have to be by triggers. A very good trigger to use for the purpose is the Ajax slider control which ships with the Ajax Control Toolkit. You can download the Ajax Control Toolkit with the slider control from the asp.net ajax site

I am still finalizing my journey on this project and will post some code snippets on this space after I have gotten a good prototype.
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkListkick it on DotNetKicks.comTwitThis

Comments

April 7. 2008 07:06 AM

l

oooooooooooooooooo

United States l

January 11. 2009 10:52 PM

Busby SEO Test

great blog, nice to be here

United States Busby SEO Test

March 12. 2009 09:53 AM

all funny sayings



This is exactly what I was looking for. Thanks for sharing this great article! That is very interesting Smile I love reading and I am always searching for informative information like this! You are bookmarked!
Thx,

United States all funny sayings

March 15. 2009 10:27 AM

how to write good

thanks for this mate!

United States how to write good

April 4. 2009 07:16 PM

jammer

wonderful
great post

Armenia jammer

April 28. 2009 07:26 AM

yachtcharter griechenland

I was just thinking about There is a follow up post on this subjectand you've really helped out. Thanks!

Greece yachtcharter griechenland

April 28. 2009 07:27 AM

yacht charter greece

I was just thinking about There is a follow up post on this subjectand you've really helped out. Thanks!

Greece yacht charter greece

April 30. 2009 05:07 PM

massachusetts movers

love u all
thanks

Republic of the Philippines massachusetts movers

April 30. 2009 05:07 PM

California movers

made my day
thank u all

Tunisia California movers

May 7. 2009 12:46 PM

Vipul

But why you have not implemented this??? we know its possible through AJAX. If you have working prototype, pls share it.

United States Vipul

May 8. 2009 03:31 AM

miketeye

Hello Vipul,

In case you missed the FIRST LINE of the post to the follow up which provides a download to a working prototype, please find the link below:

www.levitical.org/.../...mplementation-part-2.aspx

HTH

United Kingdom miketeye

May 12. 2009 07:30 AM

“Yacht charter Greece”

That's great, I never thought about  image zoom implementation like that before.

United States “Yacht charter Greece”

May 12. 2009 07:31 AM

“yachtcharter griechenland”

That's great, I never thought about  image zoom implementation like that before.

Greece “yachtcharter griechenland”

June 22. 2009 07:50 PM

Tukang Nggame

thanks for sharing great post, I think this very useful for all

United States Tukang Nggame

August 4. 2009 06:27 AM

dentist budapest

I like your blog. What kind of engine do you use?

United States dentist budapest

August 4. 2009 10:02 AM

mike

Hello dentist budapest,

I use blogengine. All necessary info is available from the link in the footer.

United Kingdom mike

September 10. 2009 07:15 AM

Business answering service

Wonder full writing skills you got mate.


Regards
Mukin

United States Business answering service

September 14. 2009 04:21 AM

Portrait from photo

This is the best post on this topic i have ever read.


Regards

Showoff

United States Portrait from photo

Add comment


(Will show your Gravatar icon)

  Country flag

Click to change captcha
biuquote
  • Comment
  • Preview
Loading



About Me

When not scratching my head for solutions to software challenges, I spend my time playing with my little boy - Michael Jnr.

Quotations

"At 20 years of age the will reigns, at 30 the wit, at 40 the judgment."
Benjamin Franklin

Donate with PayPal - it

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2005 - 2010

Search