Help me with Session in ASP.NET
On my page I have Added Session Variable. I placed tect box and a button on page and coded like below...
private sub page_load(.....)....
me.textbox1.text=session("abc")
end sub
private sub button1_click(....)....
session("abc")="Hello"
end sub
according to me
this code should check each time on page load for session("Abc")
and filles value to textbox1.
meance If i push button then page will be postback and textbox's
text should be hello.
But problem is that if i push that button session variable's value
does not change. and if i push that twice it works.
Why should i need to push button twice ??
|