Last post Nov 06, 2013 08:55 AM by martinwang1985
Nov 05, 2013 08:06 AM|martinwang1985|LINK
may i ask could anyone give me an example about transporting user sessions with encryption between 2 pages of webapplication?
thank u very much in advance your kindness help
Nov 05, 2013 09:58 AM|Siva Krishna Macha|LINK
//If your control is custom userControl Then..
YourControlType obj = Page.Master.FindControl("YourControlID") as YourControlType;
string val = obj.PropertyXYZ;
// If your control is a simple label or another ASP server control then..
Label obj = (Label)Page.Master.FindControl("YourLabelControlID");
string obj = obj.Text; // You can access all server control properties here.
Please try using Page.Master.FindControl() method.
Nov 06, 2013 08:48 AM|Amy Peng - MSFT|LINK
If I do not misunderstand you, help the following can help you to get start:
All you need to do is take the parameter and insert it in session the first time is created; on subsequent requests on the same page or any other within your site, you can access this id by doing:
string id= Session["parameter"] as string;
Or in Vb syntax:
dim id as String = Session("parameter")
Nov 06, 2013 08:54 AM|martinwang1985|LINK
thank u very much
Nov 06, 2013 08:55 AM|martinwang1985|LINK
thank u very much, i will learn this function