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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.