Link to home
Create AccountLog in
Avatar of Billy Ma
Billy MaFlag for Hong Kong

asked on

ASP.NET C# Create a class / function that can be used among all pages

How to create a class / function that can be used among all pages?

should I create a class page and add my function there?

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Praveen Kumar
Praveen Kumar
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Billy Ma

ASKER

i tried to do that...
and i wanna set the session variable
but it does not allow me to do that...
SOLUTION
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
hot it thanks
thanks
add

Imports System.Web.UI.Page

will allow you to use sesions in the page