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 is expression blend?
Describe about RelativeResource Property in WPF application?
You need to display a list of items. Which controls are possible options? Of those, which would you use and why?
What is the namespace that is used for WPF?
What is the default Orientation of Stack Panel?
Why should WPF be preferred over Adobe Flash?
Is wpf dead 2019?
Which is better winforms or wpf?
What is customcontrol?
In xaml how graphic components are specified?
List of features of mvvm?
How can you set a property attribute as a literal string and not a mark up extension?
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)