asp.net ajax, change asp:image imageurl
- by maxxxee
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.