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>  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report