asp.net ajax, change asp:image imageurl
Posted
by maxxxee
on Stack Overflow
See other posts from Stack Overflow
or by maxxxee
Published on 2010-03-17T05:44:55Z
Indexed on
2010/03/17
5:51 UTC
Read the original article
Hit count: 477
I have an update panel within which a sortable grid is present. While sorting, I have to change an image which shows the sort direction. The sort is an ajax operation initiated by a linkbutton for each column. Everything works fine except the image control. I am able to toggle visible property to show and hide it but, not able to change the ImageUrl property.
imagesort.ImageUrl = "~/images/asc.jpg";
imagesort.Visible = true;
The above code shows the image but the image is always the imageurl given in the markup not what is set in the code. If imageurl is not specified in the markup, no image(broken image) is shown irrespective of the above code.
© Stack Overflow or respective owner