Pages

May 1, 2013

Asp.Net Websites and IE10 Issue - (Checkbox not posting back in IE10, javascript not working in IE10 etc)

After IE 10 was published, many users had issues like postback/Ajax/javascript not working etc.. with the Asp.net websites. My sites were developed in .Net Framework 2.0

I downloaded the browser update file for ie from below link

www.hanselman.com/blog/content/binary/App_BrowsersUpdate.zip

and created a App_Browsers Asp.net folder in my website project and published.

The sites started working without issue.

There were options to update the browser definition file on the server, but not sure that might break something else, so i downloaded and updated the browser update file to the applications by adding them to the App_Browsers folder that solved my issue.

For more details
Refer
http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

Feb 20, 2013

How to pass argument from Rad popup window to parent window

Below is an example that demonstrates how to pass an argument from the rad pop window to parent window and based on the argument we should refresh the page.

On the pop up window call the pageload method like

<body onload="pageload();">

and call the close popup method from button click.

then use the script as below
var oWnd;
        function closePopup(URL) {

            oWnd.argument = "Refresh"; // Set the updated value in button click
            oWnd.close();
                }
       
        function pageLoad() {
            oWnd = GetRadWindow();
        }
                

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.radWindow;
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;
            return oWindow;
        }  


On the parent window onclientclose method get the argument and based on the argument i am reloading the page.

          function OnClientClose(oWnd) {
              var arg = oWnd.argument;
              
            oWnd.setUrl("about:blank"); // Sets url to blank
              oWnd.remove_close(OnClientClose);
              if(arg.toString() == 'Refresh')
                window.location.reload();
               //remove the close handler - it will be set again on the next opening
          }