How to use session variable in wpf application?
Answer / Arvind Kumar Verma
In WPF, you can manage session variables using the HttpSessionState class. First, declare the Session object in your code-behind file: System.Web.HttpSessionState BaseSession.nTo set a value:n```csharpnBaseSession["key"] = value; n```nAnd to retrieve a value:n```csharpnstring value = (string)BaseSession["key"]; n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What are Freezable objects in WPF?
What is the difference between xaml and baml?
What is wpf in vb net?
What is the difference between dynamicresource and staticresource?
Is visual studio written in wpf?
What is expression blend?
How many types of documents are supported by wpf?
Define Path animations in WPF
What are the different types of layout controls?
What is the simplest and most common way to componentize a complex ui?
What are benefits of prism?
How to create class in wpf application?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)