RE: Q: define values for all pages



Create one .cs file with in the project. Define all the variables that are
required all the variables.

Then in the .aspx.cs pages call the variables by creating objects to those
classes.

Eg:
Temp dt = new Temp();
dt.newtest();
string Name = dt.Name;

Where temp is the class created.


"JIM.H." wrote:

> Hello,
> In my C# asp.net web application, I need to define a few variable that is
> reachable from all pages. If it was C I would define it in the .h file as
> struct and use it in the myStruct.myFirstvalie, MyStruct.SecondValue, how
> should I do this here in asp.net? I guess I should use class, can you give me
> example to handle it.?
>
>
.



Relevant Pages