# Getting A QueryString Value From A Database Cell?

**URL:** <https://forum.kirupa.com/t/getting-a-querystring-value-from-a-database-cell/287110>\
**Category:** programming\
**Created:** [April 26, 2009, 3:44pm UTC](https://forum.kirupa.com/t/getting-a-querystring-value-from-a-database-cell/287110 "2009-04-26T15:44:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Spinebuster](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Joe\_Spinebuster](https://forum.kirupa.com/u/Joe_Spinebuster)\
**Post date:** [April 26, 2009, 3:44pm UTC](https://forum.kirupa.com/t/getting-a-querystring-value-from-a-database-cell/287110/1 "2009-04-26T15:44:04Z")

</div>

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](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? 🙂
