Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Kindly let me know how to do this.
Posted
Comments
[no name] 2-Oct-14 5:56am    
You would do this by clicking "Improve question" and editing your posting to include an actual question or a comprehensive description of some sort of a problem. "Kindly let me know how to do this" tells us nothing at all about your problem, is not a question and we would have no idea what "this" is that you are referring to.

Use session variable to do it.

Declare this in both aspx.cs file:
C#
public String SessionStore
{
    get { return (String)(Session["MyData"]) ?? ""; }
    set { Session["MyData"] = value; }
}

In current page, set it to some value:
C#
SessionStore = "abc";

In the target page, get it:
C#
var value = SessionStore; 


Hope this help.
Cheers
 
Share this answer
 
You can use Session and QueryString for transferring data from one page to another page.

For Security Purpose use Session Variable because Query String Variable Value are show in address bar of Browsers.

Here is Some Links for More Details About Sessions ------>

Exploring Session in ASP.NET[^]

http://www.aspdotnet-suresh.com/2012/11/aspnet-session-state-example-in-c-vbnet.html[^]
 
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