answersLogoWhite

0

I use the session ....

Session["var"] = some value or object.

Then you can call that variable any time for the users Session.

EDIT:

Make a public static variable outside of a method and just in the Class.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What are the types of Dot-net?

totally there are 3 types C # Asp dot net Vb dot net


How do you use global variables in VB NET?

In VB.NET, global variables can be declared using the Public keyword within a module or a class that is not instantiated, making them accessible throughout the entire application. For example, you can create a module and declare a variable like Public GlobalVar As Integer. To use this global variable in any part of your code, simply reference it directly by its name. Keep in mind that while global variables can simplify access to data, they can also lead to code that is harder to maintain and debug.


What is the use of Ispostback in dot net?

What is the use of Ispostback in dot net?"


What is the difference betwwen dot net and dot com?

.com=comershal .net=network


What is the fullform of dot net?

Full Form OF Dot NET- - DOT Means Data object technology and net means Network enable technology anju jaiswal


How to declare scalar variable in ASP .Net?

you must have forgotten to add parameters , in sql and asp.net when u want some queries u must add parameter to your query like cmd.Parameters.AddWithValue("@student_name", txtName.Text); if u dont add @student_name it will show u a error needing to declare sclar variable


What is dot in dot net?

dot in dot net is basically a semantic for "." (period symbol) its probably symbolizes dot com applications


Why Microsoft has chosen the name Dot Net for Ms Dot Net?

cause it sounds cool i guess


What is meaning of net in dot net?

The net in .net means either interNET or NETwork


What do you call the extension after the dot for example dot com dot net dot org?

commercial for com


Who is the founder of dot net?

Microsoft created and supports .NET.


Can you suggest some good books on Dot Net?

Books by Microsoft Press and Apress are good resources for dot net for C#, VB, ASP net