I have a gridview with selection enabled, I also added a button under it that is supposed to take the user to another page with a formview waiting to display the selected record’s complete information. How do i pass the ID as a query string and use it in the sqldatasource in the other page?
My gridview has
ID
Name
The formview will show
ID
Name
Description
Uploader
Audience
Category
You could take the value from the selected row and redirect on post back.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedrow.aspx
Where x is the cell that holds the ID
On the details page assuming a stored procedure:
EDIT: From seeing your response to another answer:
I am fairly certain that the selected row should be visible to your submit function as well.