How to use Context ?

By Goniey N (Mr. G)

You can Store Your Value As Globally To use In All Froms Like Session Variable...

//In "Source.aspx" Stores Value In Context

//Store Value Of txtUName.text in Th
e Context...
Context.Items("UName") = txtUName.Text;

//In "Destination.aspx" Retrieves The Value From Source's Context

Copy Value Of Context into UserName String Variable...
string UserName;
= Context.Items("UName").ToString;
.Write("Your User Name Is :-> " + UserName);

How to use Context ?  (792 Views)