Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 可以选择IE-C中的两个单选按钮#_C#_Visual Studio_Internet Explorer_Radio Button - Fatal编程技术网

C# 可以选择IE-C中的两个单选按钮#

C# 可以选择IE-C中的两个单选按钮#,c#,visual-studio,internet-explorer,radio-button,C#,Visual Studio,Internet Explorer,Radio Button,我认为是C代码的位置使我的单选按钮无法正常工作-到目前为止,这个错误只出现在IE中。希望这足够的信息得到一些反馈,我只是一个HTML/CSS/JS开发人员,谢谢 <% using(Html.BeginForm("CreateCustomerAccountLogin","BookingLogin")) {%> <%=this.Hidden(x=>x.SID) %> <div><input class="radio" typ

我认为是C代码的位置使我的单选按钮无法正常工作-到目前为止,这个错误只出现在IE中。希望这足够的信息得到一些反馈,我只是一个HTML/CSS/JS开发人员,谢谢

<% using(Html.BeginForm("CreateCustomerAccountLogin","BookingLogin")) {%>  
    <%=this.Hidden(x=>x.SID) %>
        <div><input class="radio" type="radio" name="NewAccount"  checked="checked" value="true" />
        <label>
            I want to create a new account
        </label></div>
        <div id="new-account">
        <%=this.TextBox(x => x.LoginName).Label("Email Address:")%>
        <br />
        <%=this.TextBox(x => x.ConfirmLoginName).Label("Confirm Email Address:")%><%= this.ValidationMessage(x=>x.ConfirmLoginName) %>
        <br />
        <%=this.Password(x => x.Password).Label("Password:")%><%= this.ValidationMessage(x=>x.Password) %>
        <br />
        <%=this.Password(x => x.Password).Label("Confirm Password:")%>
        <br />
        <%=this.TextBox(x => x.ZipCode).Label("ZipCode:")%><%= this.ValidationMessage(x=>x.ZipCode) %>
        <br />
         <% } %>
        </div>
    <div><input class="radio" type="radio" name="NewAccount" value="false" />
        <label class="wide">
            I want to continue without logging in
        </label>
    <div>
            <div class="button-container-right">
                <input class="button-primary" type="image" src="../Content/images/button-primary.jpg" border="0" id="btnSubmit" /></div></div></div>

x、 SID)%%>
我想创建一个新帐户
x、 登录名)。标签(“电子邮件地址:”)%>

x、 标签(“确认电子邮件地址:”)%>x.ConfirmLoginName)%>
x、 密码)。标签(“密码:”)%%>x.Password)%%>
x、 密码)。标签(“确认密码:”)%>
x、 标签(“ZipCode:)%%>x.ZipCode)%%>
我想在不登录的情况下继续
在呈现的HTML代码中是否有相同的表单标记的单选按钮部分?如果不尝试使它们成为相同的表单标记的一部分,这将解决您的问题。

在呈现的HTML代码中是否有相同的表单标记的单选按钮部分?如果没有,请尝试使它们成为同一表单的一部分标签,这将解决您的问题。

第二个按钮位于渲染表单之外。如果希望单选按钮被视为一个组,则需要将第二个单选按钮移动到表单中

以下是表单的起始位置:

<% using(Html.BeginForm("CreateCustomerAccountLogin","BookingLogin")) {%>

以下是表单中的所有内容:

    <%=this.Hidden(x=>x.SID) %>
    <div><input class="radio" type="radio" name="NewAccount"  checked="checked" value="true" />
    <label>
        I want to create a new account
    </label></div>
    <div id="new-account">
    <%=this.TextBox(x => x.LoginName).Label("Email Address:")%>
    <br />
    <%=this.TextBox(x => x.ConfirmLoginName).Label("Confirm Email Address:")%><%= this.ValidationMessage(x=>x.ConfirmLoginName) %>
    <br />
    <%=this.Password(x => x.Password).Label("Password:")%><%= this.ValidationMessage(x=>x.Password) %>
    <br />
    <%=this.Password(x => x.Password).Label("Confirm Password:")%>
    <br />
    <%=this.TextBox(x => x.ZipCode).Label("ZipCode:")%><%= this.ValidationMessage(x=>x.ZipCode) %>
    <br />
    </div>
<div><input class="radio" type="radio" name="NewAccount" value="false" />
    <label class="wide">
        I want to continue without logging in
    </label>
<div>
        <div class="button-container-right">
            <input class="button-primary" type="image" src="../Content/images/button-primary.jpg" border="0" id="btnSubmit" /></div></div></div>
x.SID)%%>
我想创建一个新帐户
x、 登录名)。标签(“电子邮件地址:”)%>

x、 标签(“确认电子邮件地址:”)%>x.ConfirmLoginName)%>
x、 密码)。标签(“密码:”)%%>x.Password)%%>
x、 密码)。标签(“确认密码:”)%>
x、 标签(“ZipCode:)%%>x.ZipCode)%%>
以下是表单的结尾:

    <% } %>

以下是表格之外的所有内容:

    <%=this.Hidden(x=>x.SID) %>
    <div><input class="radio" type="radio" name="NewAccount"  checked="checked" value="true" />
    <label>
        I want to create a new account
    </label></div>
    <div id="new-account">
    <%=this.TextBox(x => x.LoginName).Label("Email Address:")%>
    <br />
    <%=this.TextBox(x => x.ConfirmLoginName).Label("Confirm Email Address:")%><%= this.ValidationMessage(x=>x.ConfirmLoginName) %>
    <br />
    <%=this.Password(x => x.Password).Label("Password:")%><%= this.ValidationMessage(x=>x.Password) %>
    <br />
    <%=this.Password(x => x.Password).Label("Confirm Password:")%>
    <br />
    <%=this.TextBox(x => x.ZipCode).Label("ZipCode:")%><%= this.ValidationMessage(x=>x.ZipCode) %>
    <br />
    </div>
<div><input class="radio" type="radio" name="NewAccount" value="false" />
    <label class="wide">
        I want to continue without logging in
    </label>
<div>
        <div class="button-container-right">
            <input class="button-primary" type="image" src="../Content/images/button-primary.jpg" border="0" id="btnSubmit" /></div></div></div>

我想在不登录的情况下继续

第二个按钮位于渲染表单之外。如果希望单选按钮被视为一个组,则需要将第二个单选按钮移动到表单中

以下是表单的起始位置:

<% using(Html.BeginForm("CreateCustomerAccountLogin","BookingLogin")) {%>

以下是表单中的所有内容:

    <%=this.Hidden(x=>x.SID) %>
    <div><input class="radio" type="radio" name="NewAccount"  checked="checked" value="true" />
    <label>
        I want to create a new account
    </label></div>
    <div id="new-account">
    <%=this.TextBox(x => x.LoginName).Label("Email Address:")%>
    <br />
    <%=this.TextBox(x => x.ConfirmLoginName).Label("Confirm Email Address:")%><%= this.ValidationMessage(x=>x.ConfirmLoginName) %>
    <br />
    <%=this.Password(x => x.Password).Label("Password:")%><%= this.ValidationMessage(x=>x.Password) %>
    <br />
    <%=this.Password(x => x.Password).Label("Confirm Password:")%>
    <br />
    <%=this.TextBox(x => x.ZipCode).Label("ZipCode:")%><%= this.ValidationMessage(x=>x.ZipCode) %>
    <br />
    </div>
<div><input class="radio" type="radio" name="NewAccount" value="false" />
    <label class="wide">
        I want to continue without logging in
    </label>
<div>
        <div class="button-container-right">
            <input class="button-primary" type="image" src="../Content/images/button-primary.jpg" border="0" id="btnSubmit" /></div></div></div>
x.SID)%%>
我想创建一个新帐户
x、 登录名)。标签(“电子邮件地址:”)%>

x、 标签(“确认电子邮件地址:”)%>x.ConfirmLoginName)%>
x、 密码)。标签(“密码:”)%%>x.Password)%%>
x、 密码)。标签(“确认密码:”)%>
x、 标签(“ZipCode:)%%>x.ZipCode)%%>
以下是表单的结尾:

    <% } %>

以下是表格之外的所有内容:

    <%=this.Hidden(x=>x.SID) %>
    <div><input class="radio" type="radio" name="NewAccount"  checked="checked" value="true" />
    <label>
        I want to create a new account
    </label></div>
    <div id="new-account">
    <%=this.TextBox(x => x.LoginName).Label("Email Address:")%>
    <br />
    <%=this.TextBox(x => x.ConfirmLoginName).Label("Confirm Email Address:")%><%= this.ValidationMessage(x=>x.ConfirmLoginName) %>
    <br />
    <%=this.Password(x => x.Password).Label("Password:")%><%= this.ValidationMessage(x=>x.Password) %>
    <br />
    <%=this.Password(x => x.Password).Label("Confirm Password:")%>
    <br />
    <%=this.TextBox(x => x.ZipCode).Label("ZipCode:")%><%= this.ValidationMessage(x=>x.ZipCode) %>
    <br />
    </div>
<div><input class="radio" type="radio" name="NewAccount" value="false" />
    <label class="wide">
        I want to continue without logging in
    </label>
<div>
        <div class="button-container-right">
            <input class="button-primary" type="image" src="../Content/images/button-primary.jpg" border="0" id="btnSubmit" /></div></div></div>

我想在不登录的情况下继续

如果您删除了新的帐户div,并且其内容是否仍然显示在IE中?并且看起来像checked=“checked”应该被选中。checked=“checked”很好,对于XHTML是正确的。如果您删除了新的帐户div,并且其内容是否仍然显示在IE中?并且看起来像checked=“checked”应该只是检查。checked=“checked”很好,对于XHTML来说是正确的。我相信ARS是正确的。将结尾的花括号移到第二个单选按钮下面的某个位置…我相信ARS是正确的。将结束的花括号移动到第二个单选按钮下方的某个位置。。。