Thursday, December 27, 2012

history.back() not working in chrome

I have faced this issue and searched for long time to get a good solution. Instead of using history.back(), use history.go(-1). It is working in IE,Chrome and Firefox. Add return false also to the function


example:
 <html>  
 <head>  
 <script>  
 function goBack()  
 {  
   window.history.go(-1);  
   return false;  
  }  
 </script>  
 </head>  
 <body>  
    <input type="button" value="Back" onclick="goBack()">  
 </body>  
 </html>  

Tuesday, August 21, 2012

Could not create 'CDO.Message' - The transport failed to connect to the server


This is an SMTP Server error. There are so many reasons for getting this error.  So you have to check the Inner Exception of this exception. One of the inner exception for this error is "The transport failed to connect to the server". If you found this error initially check the Firewall setting. The firewall might block the web mail port. Add firewall exception to the web mail port (25) .

And instead of assigning the server like
SmtpMail.SmtpServer = "127.0.0.1 or your mail server name"


Use the insert method as below
SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name")


Some more details are available at Microsoft Support

Thursday, July 12, 2012

Could not find stored procedure 'sp_sdidebug'

This error comes in Visual Studio due the Project property settings. It comes during the debug session. The SQL Server debugging  option in the Project properties should be Turned Off before starting the debug.


Thursday, July 5, 2012

How to remove the Header and Footer added by the browser for HTML Print

There is no way to remove the header and footer added  by the browser through javascript code.  The user has the option to change the page setup before making the print out.  The below site nicely explains how to change the page setup for 1E,FireFox and Opera.
http://www.mintprintables.com/print-tips/header-footer-windows/

But it is not telling about the Chrome.

The new version of Chrome (20.0.1132.47) has an option to remove the header and footer. See the below image.


Monday, July 2, 2012

How to convert LogmeIn-Pro to LogmeIn-Free

It will be converted automatically when the trial version get expired. No other changes required. It will disable the Pro features also like Dashboards, File Sharing , Chat etc. 

Wednesday, June 13, 2012

What is mean by minOccurs and maxOccurs in xml defenition (xsd) file

minOccurs and maxOccurs are the occurrence indicators in xml. These two will decide how many times each element in the xml can be occurred/added. minOccurs can be either 0 or 1. The default is 1. That means the xml should include at least one of that  element . If minOccurs =0 means that element can be avoid to be part of xml.
maxOccurs decide the maximum limit of the occurrence of the particular element. Default maxOccurs=1.