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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -