If anyone encounters issue of not window.location, window.location.href, document.location and every possible combination not working, try this out instead:
redirect = "http://www.google.com";
setTimeout("window.location.href = redirect",0);
Don't know why it works, but it works!!! Found this issue in both IE6 and IE7.
This blog is about my learning experience on Integration, Maps, ERP, ASP .NET, Javascript and anything else in my journey. Sharing this for less pain and more joy for others!!!
Thursday, 2 August 2007
Monday, 21 May 2007
ASP .NET Tips/Issues
- Even if the the EnableViewState is disabled, still the values are maintained across post-back. Why? Because of something called ControlState, wherein certain details of all controls are maintained always.
- If re-directing to a URL within the local web-site use Server.Transfer rather than Response.Redirect, for quicker response and conserve server resources. The latter is used for re-directing to external site.
- Read the below URL if you get errors such as: "Sys.WebForms.PageRequestManagerParserErrorException"http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#2202116 Ignore the part of not using Server.Transfer. It seems the author is not aware of it, I believe!
- Beware using Validation controls within AJAX Controls, eg. UpdatePanel. It is not yet implemented. There is a work around though. Need to wait for an Windows Live Update for it. Check out the link:http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx
- When trying to use "~" within script tags in Master Pages, you need to use "DataBinding" on the code-behind page, otherwise look-out for errors. Eg. Map_Admin.master(look both aspx and cs files).
Subscribe to:
Posts (Atom)