Hi, i am trying to write a custom class (i.e. the ones you compile to a dll) in
vb.net, to talk to be able to write cookies, but i am having mucho problems.
Correct me if i'm wrong; but as i gather you need to be able to access httprespone and request, but i am having problem in accessing them from the custom class (i.e. it won't compile). I get the impression they are apart of the page object, but as the code isn't in a page, how do i access them, I saw something about inheritance, i get the idea about that (use it in C++) but don't now how to implement it in this.... If thats the way to do it.
-Thanks for any help.
oh yeah, here's some code. This is the code i have currently in each page, i am trying to get that into a method in a custom class.
Code:
function getStyle() As String
Dim sStyle As String
if Request.Cookies("css") Is Nothing Then
sStyle = "normal"
return sStyle
else
sStyle = Request.Cookies("css").Value
return sStyle
end if
End function