window.showmodaldialog not working in chrome
<p>I'm using VS2010 Express edition for my project.</p>

<p>I have created one registration form which is having "Submit" button, which will open up the new window (child window).</p>

<p>It contains aspx button (  ).</p>

<p>Child window again contains a form which is filled up by us and after clicking on Save button that form gets saved and after getting saved if we close the child window then the registration form gets submitted.</p>

<h2>Page load contains a function which is calling the javascript.</h2>

<pre><code>SetJavaScript();
        if (Session["IsSuccess"] != null)
            if (Session["IsSuccess"].ToString().ToLower() == "success")
                TextBox1.Text = Session["IsSuccess"].ToString();
        if (ddlTicketType.SelectedValue.ToString().ToLower() == "cr")
            btnSubmit.Attributes.Add("OnClick", "OpenChild(); ");
        if (ddlTicketType.SelectedValue.ToString().ToLower() == "pr")
</code></pre>

<h2>                btnSubmit.Attributes.Add("OnClick", "clickno();");</h2>

<p>Since window.showmodaldialog is not working on chrome. I have used window.open also but its also not working properly as it open up the child form and after closing it registration form having error message "Please fill up the form".
Below is the javascript code which is getting called on page load.</p>

<hr>

<pre><code>private void SetJavaScript()
   {
    string str_Script = "";
    str_Script += "&lt;script type='text/javascript' language='javascript'&gt;";
    str_Script += "function OpenChild() ";
    str_Script += "{ CheckValidation();";
    str_Script += "var varx = document.getElementById('TextBox1').value;";

    str_Script += "if (varx== 'yes'){";
    str_Script += "var ParmA = '2';";
    str_Script += "var MyArgs = new Array(ParmA);";
    str_Script += "if (ParmA=='2'){";
    str_Script += "var WinSettings = 'center:yes;resizable:yes;dialogheight:800px;dialogwidth:1000px';";
    str_Script += "MyArgs = window.showModalDialog('user/cr1.aspx', MyArgs, WinSettings);";

    str_Script += "if (MyArgs == null)";
    str_Script += "{";
    str_Script += "}";
    str_Script += "else";
    str_Script += "{";
    str_Script += "document.getElementById('TextBox1').value =MyArgs[0].toString();";
    str_Script += "}";
    str_Script += "}}";
    str_Script += "&lt;/script&gt; ";
    this.Page.RegisterStartupScript("Reconnect", str_Script);
</code></pre>

<h2>}</h2>

<p>Please help me out to make it work again properly as it was working very fine earlier before chrome update.
Please let me know any good alternative for this which will fix it.</p>