On the other page I have GridView that I want to print an image based on the query string. For example if the Department_ID= 2, I want o pull back the Map_Location with a Map_ID=2 from my table. Not sure how to set that up. Currently it is returning all
the images in the table. Thanks
gordon1221
Member
12 Points
117 Posts
Image displayiing based on QueryString
Apr 27, 2012 04:47 PM|LINK
I am passing a query string from a hyperlink navigate url to another page:
<asp:HyperLink ID="Department_ID" runat="server"ImageUrl='<%# String.Format("~/Images/button.png",Eval("Department_ID")) %>'
NavigateUrl='<%# "~/Department_Maps.aspx?Department_ID="+Eval("Department_ID") %>' Target="_parent">
On the other page I have GridView that I want to print an image based on the query string. For example if the Department_ID= 2, I want o pull back the Map_Location with a Map_ID=2 from my table. Not sure how to set that up. Currently it is returning all the images in the table. Thanks
<asp:ImageField DataImageUrlField="Map_Location">
</asp:ImageField>