hi i have a database with the following coloumns

thid
thname
thdate

i have used the gridview control to display this info, also enabled paging and selection with it.

i want to jump to "one.aspx" page and set the value of a querystring variable "thid" to the value in the col thid when selected.

for example if there is a row in db
thid (1) thname(bharat) thdate(2009) when i select this row in the data grid view control it must redirect me to one.aspx?thid=1

Please help

hi,

you can use a hyperlink to achieve your functionality

<asp:TemplateColumn HeaderText="Order">
<ItemTemplate>
<asp:Hyperlink runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"OrderID")%>' NavigateUrl='<%# "page.aspx?Orderid=" + DataBinder.Eval(Container.DataItem,"Orderid") + "&ProductID=" + DataBinder.Eval(Container.DataItem,"ProductID")%>' ID="Hyperlink1" NAME="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>
<asp:HyperLinkField DataNavigateUrlFields="ThreadID" DataNavigateUrlFormatString="viewpost.aspx?ThreadID={0}"
                    DataTextField="ThreadID" HeaderText="Thread ID" NavigateUrl="~/viewpost.aspx" />

this solved my problem

This question has already been answered. Start a new discussion instead.