↧
Answer by avinava basu for Use Session variable in html
I was actually trying a lot to get my session value from a page to another html in asp.net.However some syntactical error was always acting as an hindrance.In order to solved it, I've created a web...
View ArticleAnswer by Oded for Use Session variable in html
Use a codeblock:Hello <%:Session["user"]%>Or if before .NET 4.0:Hello <%=Server.HtmlEncode(Session["user"])%>
View ArticleUse Session variable in html
I get a session variable from a login form and then redirect to another page: String a = Login1.UserName; Session["user"] = a; Response.Redirect("~/Home.aspx");In Home.aspx I wish to display in a div...
View Article