我非常新的asp .net ... PLZ帮助我 [英] im very new in asp .net...plz help me
问题描述
我是asp.net的新手。我先生给一个注册表格。
我是第一次处理Visual Studio 2008.I当涉及性别男性和女性使用单选按钮时有问题。
但是当我在本地主机上调试我的整个程序时,当我点击Men然后好了。但是我又改变了我对女性的选择它没有继续。两个性别都被点击了。
请帮帮我。我的源代码应该做些什么改变?
Sonali
你应该使用这个:< asp:RadioButtonList ID = RadioButtonList1 runat = < span class =code-string> server >
< asp:ListItem Text = 男性值= M > < / asp:ListItem >
< asp:ListItem Text = 女性值= < span class =code-string> F > < / asp:ListItem >
< / / span> asp:RadioButtonList >
注意:不要在互联网上使用全部大写字母。它被称为喊叫并且被认为粗鲁。
请确保两个radiobutton都在同一个组中。
我认为这是原因..
您好..
指定单选按钮的组名,例如
< asp:radiobutton id = rdoButton1 groupname = Group1 text = Male value = 男 runat = server />
< asp:radiobutton id = rdoButton2 groupname = Group1 text = 女性 值 = 女性 runat = server />
I am very new in asp.net.My sir give to make one registration form.
I am handling Visual Studio 2008 for the very first time.I have problem when it comes to gender Men and Female where i used radio buttons.
But when i debug my whole program at the local host,when i click to Men then its ok.But again i change my selection with Female its not going on.Both gender are showing clicked.
Please help me out.What changes should i make in my source code?
Sonali
You were supposed to use this:<asp:RadioButtonList ID="RadioButtonList1" runat="server"> <asp:ListItem Text="Male" Value="M"></asp:ListItem> <asp:ListItem Text="Female" Value="F"></asp:ListItem> </asp:RadioButtonList>
Note: Don't use all capital letters on internet. Its called shouting and considered rude.
please ensure that both the radiobuttons are in the same Group.
I think it is the reason..
Hi..
Specify group name for radio buttons like
<asp:radiobutton id="rdoButton1" groupname="Group1" text="Male" value="Male" runat="server" /> <asp:radiobutton id="rdoButton2" groupname="Group1" text="Female" value="Female" runat="server"/>
这篇关于我非常新的asp .net ... PLZ帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!