Assuming you already have your datatable binded to your gridview, instead of using hyperlink, try this...
<asp:TemplateField HeaderText="Product Id">
<ItemTemplate>
<a href="page2.aspx?prod_id=<%# DataBinder.Eval(Container.DataItem, "ProductId") %>">
<asp:Label ID="lblProductId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductId") %>'></asp:Label></a></ItemTemplate>
</asp:TemplateField>
Here, i'm passing the product id through the querystring. in your page 2, just add:
String strProdId = Request.QueryString["prod_id"].ToString()
Hmm, don't know if this can help... Please tell me so, if it did. Even if it didn't, just let me know.. If I misunderstood, please clarify, ü
i couldn't sleep, and wouldn't sleep, [love] asp.net and c# came and told me i shouldn't sleep, bewitched bothered and bewildered, am i