vb.net - Public shared function and cookies or sessions asp.net vb -
i have implement public shared function in aspx.vb page (not in class or web service) use javascript had problem creating cookies , sessions
how can create cookies or sessions in shared function? ideia!
thank all.
<webmethod> _ public shared sub test(text string) dim ctx httpcontext = system.web.httpcontext.current ctx.session("test") = text ctx.response.cookies("testcookie").value = text
end sub
Comments
Post a Comment