Tuesday, May 5, 2015

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>  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...