Setting asp:Image URL using Javascript function

Posted by Anil on Stack Overflow See other posts from Stack Overflow or by Anil
Published on 2010-06-12T16:27:39Z Indexed on 2010/06/12 16:32 UTC
Read the original article Hit count: 241

Filed under:
|

Hi all I have a series of asp:ImageButtons and one asp:Image(Big). Clicking on each ImageButton should change the ImageUrl of asp:Image to a new ImageUrl. How can we handle this using one Javascript function. Because I dont wanna code ImageButton_Click for each and every asp:ImageButton. This makes my application run very slow and also pass too many server requests.

Any ideas ????How to design one powerful Javascript function. By the way when the user clicks on ImageButton...the ImageUrl that has to be set to asp:Image(Big) is same as that of ImageButton. This might help a bit.

Thanks in advance

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript