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>
Work smarter, not harder.