ASP.NET按钮无法在IE中运行

时间:2014-09-30 13:53:32

标签: asp.net

我有以下页面:

http://tinyurl.com/p4qpe6m

在Firefox中如果选择“有限公司”并按下按钮就可以正常工作。

但在IE中没有任何事情发生。

代码非常简单:

protected void Page_Load(object sender, EventArgs e)
    {

        btnOkay.Click +=new EventHandler(btnOkay_Click);

    }


    void btnOkay_Click(object sender, EventArgs e)
    {
        if (RadioButtonList1.SelectedIndex >= 0)
        {
            if (RadioButtonList1.SelectedIndex == 0)
            {
                Response.Redirect("https://www.myurl.uk/proposal_personal.aspx?quoteid=" + Request.QueryString["quoteid"]);
            }
            else
            {
                Response.Redirect("https://www.myurl.uk/proposal_business.aspx?type=" + RadioButtonList1.SelectedIndex.ToString() + "&quoteid=" + Request.QueryString["quoteid"]);

            }
        }
        else
        {
            ErrorMessage.Text = "Please select proposal type!";
        }
    }

有关如何调试它的任何帮助!

由于

编辑:按要求输出HTML:

<div class="proposal">
    <div class="title-panel">
        <h1>Please Select Proposal Type</h1>
    </div>
    <div class="title-image">
    </div>
    <div id="cphContent_cphContent_panForm" class="content-table">

    <div class="content-table-m">
        <table>  
            <tr>
                <td>   
                    <table id="cphContent_cphContent_RadioButtonList1">
    <tr>
        <td><input id="cphContent_cphContent_RadioButtonList1_0" type="radio" name="ctl00$ctl00$cphContent$cphContent$RadioButtonList1" value="Consumer" /><label for="cphContent_cphContent_RadioButtonList1_0">Consumer</label></td>
    </tr><tr>
        <td><input id="cphContent_cphContent_RadioButtonList1_1" type="radio" name="ctl00$ctl00$cphContent$cphContent$RadioButtonList1" value="Limited Company" /><label for="cphContent_cphContent_RadioButtonList1_1">Limited Company</label></td>
    </tr><tr>
        <td><input id="cphContent_cphContent_RadioButtonList1_2" type="radio" name="ctl00$ctl00$cphContent$cphContent$RadioButtonList1" value="Partnership" /><label for="cphContent_cphContent_RadioButtonList1_2">Partnership</label></td>
    </tr><tr>
        <td><input id="cphContent_cphContent_RadioButtonList1_3" type="radio" name="ctl00$ctl00$cphContent$cphContent$RadioButtonList1" value="Sole Trader" /><label for="cphContent_cphContent_RadioButtonList1_3">Sole Trader</label></td>
    </tr>
</table>
                    <div style="width:205px; text-align:center;">
                        <p style="margin-top:20px;">
                            <input type="button" name="ctl00$ctl00$cphContent$cphContent$btnOkay" value="Go to Credit Application" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctl00$cphContent$cphContent$btnOkay&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))" id="cphContent_cphContent_btnOkay" />
                        </p>
                        <p style="margin-top:20px;">    
                            <span id="cphContent_cphContent_ErrorMessage"></span>
                        </p>
                    </div> 
                 </td>
            </tr>
        </table>
    </div>

    

0 个答案:

没有答案