Alright, so I have a webpage I’m testing new things on (http://comp.paisley.ac.uk/insc/insc183/project/home_page_that_might_acually_let_me_save.aspx) and at the bottom of that webpage I have a link that looks like this:
<asp:HyperLink ID=“HyperLink1” runat=“server” NavigateUrl=“product_page.aspx?Product_ID=1”>Display more info on item</asp:HyperLink>
At the TOP of this page I also have a GridView which is linked to display the contents of a database with a list of items.
What I want to do is move the links from the bottom of the page to inside the last column of the GridView, and change it so the value after “[FONT=Arial]?[FONT=Arial]Product_ID=[/FONT][/FONT]” relates to the “ProductID” column of my database.
I tried changing the ItemTemplate of the last column of the GridView to this:
<asp:HyperLink ID=“HyperLink1” runat=“server” NavigateUrl=“product_page.aspx?Product_ID=‘<%# Bind(“ProductID”) %>’”>Display more info on item</asp:HyperLink>
BUT, apparently it’s not as straightforward as that. Hopefully this’ll show what I’m trying to do, though.
Anyone offer any simple, dumbed-down advice for a newbie?