How to maintain session variable in html

Posted by Bulksms under ASP.NET on 11/9/2011 | Points: 10 | Views : 1667 | Status : [Member] | Replies : 1
how to maintain session variable or set session variable in html page?




Responses

Posted by: Abdulhaknet on: 11/10/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Friend,

Assigning....
Session["variablename"] = value
value - may be small data / datatable

reterieving....
myvar = (datatype)Session["variablename"];

1.if assigned value is int then use int in place of datatype
2.if assigned value is datatable then use DataTable in place of datatype.





Bulksms, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response