D
darrel
I posted a question below and GroupReader suggested I look into constructors
as the solution to my problem.
So, that's what I'm doing, but I'm a little hung up on how to pass data back
to my page.
What I'm doing is trying to set up a class that can read a cookie and pass
the data back to the particular page. I looks like I need something like
this:
Public Class UserSecuritySettings
public sub ReadCookie()
....
su_strUser = Server.HtmlEncode(Request.Cookies("CMSUser")("su_strUser"))
su_strDistrict =
Server.HtmlEncode(Request.Cookies("CMSUser")("su_strDistrict"))
....
end sub
End Class
Then, on my page, I'd do:
dim securitySettings as new UserSecuritySettings
scuritySettings.ReadCookie()
The problem is that I have no idea how to access the variables in the class.
Since a constructor has to be a sub, I see no way to pass back a value.
-Darrel
as the solution to my problem.
So, that's what I'm doing, but I'm a little hung up on how to pass data back
to my page.
What I'm doing is trying to set up a class that can read a cookie and pass
the data back to the particular page. I looks like I need something like
this:
Public Class UserSecuritySettings
public sub ReadCookie()
....
su_strUser = Server.HtmlEncode(Request.Cookies("CMSUser")("su_strUser"))
su_strDistrict =
Server.HtmlEncode(Request.Cookies("CMSUser")("su_strDistrict"))
....
end sub
End Class
Then, on my page, I'd do:
dim securitySettings as new UserSecuritySettings
scuritySettings.ReadCookie()
The problem is that I have no idea how to access the variables in the class.
Since a constructor has to be a sub, I see no way to pass back a value.
-Darrel