Author: losssoc | Posted on: 9/27/2009 5:00:14 AM | Views : 468

 I have 6 ImageButtons that are embedded in a master page.  When the used clicks the Image to redirect to another page I would like the image to change.  The below code works only when the used clicks the same page.  If the used clicks another page the image is not updated unless the user clicks the image button twice.
How do I get the ImageButton ImageUrl to change the first time when Clicked?
 
protected void ibnew_Click(object sender, ImageClickEventArgs e) { ibnew.ImageUrl = "~/images/newclothing2.gif"; } protected void ibused_Click(object sender, ImageClickEventArgs e) { ibused.ImageUrl = "~/images/usedclothing2.gif"; } protected void ibshoes_Click(object sender, ImageClickEventArgs e) { ibshoes.ImageUrl = "~/images/shoes2.gif"; } protected void ibay_Click(object sender, ImageClickEventArgs e) ...

Go to the complete details ...