Problem transfering data from gridview to another page
I am working on a web project in ASP
I created a hyperlink column in a gridview,
the NavigateURL is mynewpage.aspx?Name={0}
The column data item I want is of course in the "Name" column
When I use Request.Querystring("Name") ... All I get is "{0}" on the new page.
Whatever I enter after "=" will transfer,
If I use mynewpage.aspx?Name=bubba, the new page will recieve "bubba".
When I use {0} withing the gridview to make sure it is picking up the data from "Name" it indeed does, but never transfers the data to the other page.
Re: Problem transfering data from gridview to another page
I found the solution.....
I added these commands to the column:
DataNavigateUrlFields="Name" DataNavigateUrlFormatString="mynewpage.aspx?Name={0}"
Works perfectly now!