ajax session varibales

Reply Forum
Forum postdeepti @ 2011-03-29 19:22:40
ReplyReply to
i want to assign session variable in javascript ..
and access it it code behind


Forum postSantosh @ 2011-03-30 20:42:12
ReplyReply to
ur ? is not very clear but as i understand solution is as follows

take a span tag and add runat="server" so that is could be accessible from code behind .

<span id='MySessionVar' runat="Server" ></span>

in code behind use
void Page_Load(object sender,EventArgs e)
{
MySessionVar.InnerHtml=Session["SessionVarName"].ToString();
}



if any problem then describe in details, or if u feel better to discuss on problem u may call 09334888992 or mail : m2c.santosh@gmail.com , i will be happy to have new problem experience.











© net-tutorials.com 2006 - 2012

MailContact net-tutorials.com