RE: Q: define values for all pages
- From: "Gayathri" <Gayathri@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Jul 2005 05:03:03 -0700
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.?
>
>
.
- References:
- Q: define values for all pages
- From: JIM.H.
- Q: define values for all pages
- Prev by Date: Q: define values for all pages
- Next by Date: Re: Q: define values for all pages
- Previous by thread: Q: define values for all pages
- Next by thread: Re: Q: define values for all pages
- Index(es):
Relevant Pages
|