locked
MS CRM 2013 form refresh is not working from Code behind in Chrome. RRS feed

  • Question

  • Hi,

    I am refreshing CRM form  which is working for IE , Firefox but not working for Chrome. Below is my code Please suggest.

     private void reloadCRMPage(string opportunityId)
            {
                string crmServer = ConfigurationManager.AppSettings["CRMServerURL"].ToString();
                string orgname = ConfigurationManager.AppSettings["orgName"].ToString();
                string url = string.Empty;
    
                string script = @"debugger;
    
    					            url = '" + crmServer + "/" + orgname + @"/main.aspx?etc=3&pagetype=entityrecord&id=" + opportunityId + @"';
                                   
                                     window.opener.document.top.location.href = url
                                    
                                    ";
                ClientScript.RegisterStartupScript(typeof(Page), "Refresh", script, true);
    
            }

    Thanks,


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari http://microxrm.blogspot.in

    Friday, January 2, 2015 7:26 AM