Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declaring a class for use throughout a code behind page

Status
Not open for further replies.

johnrg1

Programmer
Jan 24, 2003
38
0
0
GB
Hi All,

I'm trying to find a way to declare a class in a code behind page that will allow me to use it within different functions and procedures without having to declare it each time.

Another question while I'm asking, when I declare the class, I pass it a userID which is stored as a session variable. Should i use a session variable, or would a cookie be better?

Thanks,

John
 
what does the class do? if it just stores a userID, you could use a cookie...or session, if it stores multiple items, you may want to use a cookie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top