aatif84
asked on
Where is a good place to store functions like Logout() that all my pages can access?
Where is a good place to store functions like Logout() that all my pages can access?
For example, if I have a method that does this:
Protected Sub Logout_Click(ByVal sender As Object, ByVal e As EventArgs)
FormsAuthentication.SignOu t()
Response.Redirect("~/Defau lt.aspx")
End Sub
Where can I put that so that all my pages can get access to that function without having to rewrite it in all my pages?
Thanks!
For example, if I have a method that does this:
Protected Sub Logout_Click(ByVal sender As Object, ByVal e As EventArgs)
FormsAuthentication.SignOu
Response.Redirect("~/Defau
End Sub
Where can I put that so that all my pages can get access to that function without having to rewrite it in all my pages?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
ASKER