Category Archives: ASP.Net

JavaScript, UTF-8 Encoding: escape() vs. encodeURIComponent()

ASP.Net web applications default to UTF-8 encoding.  Now, if you are using JavaScript to create or change URLs, you might run into an issue with the way the function “escape()” encodes characters if you are handling the decoding in your … Continue reading

Posted in ASP.Net, C#, JavaScript | Leave a comment

Sys.WebForms.PageRequestManagerServerErrorException in FireFox with MSFT Ajax

If you encounter this error while navigating away from an AJAX-enabled page with a non-IE browser, you can silence it with the following JavaScript:   if (!document.all) //non-ie { window.onbeforeunload = function() { Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ignoreOnEndRequest); } }   function ignoreOnEndRequest(sender, e) … Continue reading

Posted in ASP.Net, C#, FireFox, JavaScript | 1 Comment