hi i have a database with the following coloumns


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


you can use a hyperlink to achieve your functionality

<asp:TemplateColumn HeaderText="Order">
<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"/>

<asp:HyperLinkField DataNavigateUrlFields="ThreadID" DataNavigateUrlFormatString="viewpost.aspx?ThreadID={0}"
                    DataTextField="ThreadID" HeaderText="Thread ID" NavigateUrl="~/viewpost.aspx" />

this solved my problem

i want code for develop media player forward & reverse button code