Global variable

M

Miguel Dias Moura

Hello,

I need to declare a global variable in my Aspx.Vb code to be available
on my Aspx page.
Where should i declare my variable inside my asp.vb code?

Thanks,
Miguel
 
G

Guest

The article John pointed at is quite good but it is misses out on one
important possibility, which is inheritance. You can have a parent web form
which all other inherit. Then you can write your "global" code as functions
in the parent form. For me, that is the natural approach and this is exactly
the circumstances when object oriented design works at its best.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top