Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-04-13
2
Medium Priority
?
784 Views
Last Modified: 2012-05-06
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.  
0
Comment
Question by:JeffEae
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 12

Accepted Solution

by:
Nirmalan Nagenthiran earned 1500 total points
ID: 24134501
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

0
 
LVL 12

Assisted Solution

by:Nirmalan Nagenthiran
Nirmalan Nagenthiran earned 1500 total points
ID: 24134520
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

http://geekswithblogs.net/ranganh/archive/2005/04/25/37631.aspx
http://www.daniweb.com/forums/thread82311.html 
http://aspnet.4guysfromrolla.com/articles/050802-1.2.aspx 
http://www.ondotnet.com/pub/a/dotnet/2003/04/07/aspnetnav.html 
http://www.codeproject.com/KB/aspnet/TransferingValues.aspx

 If you need more info check these links..
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question