开发者

change an individual image in a gridview depending on a value

开发者 https://www.devze.com 2023-02-14 20:50 出处:网络
i have 2 tables assignment and feedback, in a gridview it displays all the assignments, the assignments then get feedback. im then wanting to change the view feedback button in the gridview depending

i have 2 tables assignment and feedback, in a gridview it displays all the assignments, the assignments then get feedback. im then wanting to change the view feedback button in the gridview depending on if there is new feedback for example:

change an individual image in a gridview depending on a value

change an individual image in a gridview depending on a value

the feedback table has a sta开发者_StackOverflow中文版te field in it so when its 1 i want that image button to change to the one with the +

Thanks in advance Houlahan


on ItemDataBound Event you can can change image's url

Image img = (Image)e.Item.FindControl("ImgId");
img.NavigateUrl = "~/images/othersource.png";
0

精彩评论

暂无评论...
验证码 换一张
取 消