Sunday, April 19, 2015

Session value set and get in to java script ASP.NET

Set session value in to your java script any event:

 <%Session["aux1_7"]="7";%>;  


Get value in to your java script any event:


  var someSession = '<%= Session["aux1_7"] %>';  
         if (someSession) {  
           // Do something  
         }  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...