• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 790
  • Last Modified:

Gridview on one page, transferring values to a formview on another page.

Hi guys,

If I have a gridview on one page, and I want to transfer values from one row to another page and contain the values in a formview, what would be the easiest way to accomplish this? I was thinking of using query strings or something like that but not sure.  
  • 2
2 Solutions
Nirmalan NagenthiranCommented:
Sore the Row Value in session

//create datatable to store your row
DataTable dt = new DataTable; 
DataRow dr = dt.NewRow();   
//set data to the row
dr["ColumnName"] = "some data"; 
Session["DT"] = dt;
//Retrieve data in another page through Session
DataTable dt = (DataTable)Session["DT"];

Open in new window

Nirmalan NagenthiranCommented:
There are different ways to transfer data from one page to another page.

1) response.redirect
2) server.transfer
3) server.execute
4) cookies
5) session


 If you need more info check these links..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now