Public Variables that can be seen by Web Forms

Tongue Tied Is there a way to set Public Variables that can be seen by Web Forms.
[139 byte] By [deenaMay3] at [2007-12-16]
# 1
Try to be more specific. Set public variables where? In a class? If the class is accessible from the form and it contains public variables they will be "seen" by the Web Forms.
papadi at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Hi,

There are two things here. One is a public variable which is an instance variable and the other is a public variable which is a static variable(shared in VB).

If you make a instance variable say Property1 as public, then you can access it with the object as :
objWebForm1.Property1

If you mark the variable as static(shared), then you can access it with classname as :
WebForm1.Proeperty1 - and it will be common for all instances of WebForm1.

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
Yes, but not all *.aspx items, just the aspx item I'm working on.
Sorry about the terminology. I new to visual web development.
deenaMay3 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified