Dynamic Image Display using javascript
I had this requirement. I was displaying images for moderation in a datagrid and was displaying this in a different resolution. If the user wants to view the image without opening a popup or going to server side I used javascript to do this.
DataGrid has an event OnItemDataBound. After a row is added in this event I attach an attribute "onclick" and the javascript function that is to be displayed.
I have a image control and onclick in the image control I display the full sized image. So moderator knows the size of the image and how it will look etc.. and then decide to accept or reject it.
Swarna

0 Comments:
Post a Comment
<< Home