Skip to main content

Posts

Showing posts with the label Session

Session value show in html ASP.NET

Set the value: HttpContext.Current.Session["CVVAndOTPRequiredCardMessage"] = cardNoMessage; HttpContext.Current.Session["CVVAndOTPRequiredCardMessage2"] = cardNoMessage2; Show session value in html: <p> <%=Server.HtmlEncode(HttpContext.Current.Session["CVVAndOTPRequiredCardMessage"].ToString())%></br> <%=Server.HtmlEncode(HttpContext.Current.Session["CVVAndOTPRequiredCardMessage2"].ToString())%> </p>