Click here to Skip to main content
15,904,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<b></b> i have problem with passing datails from one page to another page please let me know solution for this
Posted
Comments
Ashishmau 3-May-11 2:40am    
search on google u will find various links
Sandeep Mewara 3-May-11 2:46am    
What problem?

There are many ways to do that:

1. You can construct URL with required info passing as parameters before redirecting to specific page.

Ex:

string pageURL = "~/NewPage.aspx?DisplayMode=" + Server.UrlEncode("Edit") +
"&Param1=" + Server.UrlEncode(paramValue) +
"&Param2=" + Server.UrlEncode(paramValue);
Response.Redirect(pageURL , false);

2. If data is in bulk, you can use Session variable to store data in first page and can fetch in second page.

Ex:
//in page 1
Session["Page1Data"] = string data;

//in page 2
string strTemp = Session["Page1Data"]
 
Share this answer
 
Comments
CodeHawkz 3-May-11 3:43am    
Good answer :) You should add "ViewState" and "Cookies" to this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900