例如:1,2,3;选中2了,怎么表示,刚刚学习,纯新的手!
解决方案 »
- ajaxToolkit:TabContainer 中的TabPanel中的button 更新TabContainer外的updatepanel
- e.Row.RowType 问题
- 在同一台客户端电脑登陆BS系统,如何让后一个用户的SESSION不覆盖前一个用户的登陆SESSION
- 分类信息网站数据库怎么设计的?
- ASP.NET控制权限的问题`
- 要用字符串变量存储一段javascript脚本,要怎么搞?最前面加了@,然后"后前面加了\,还是报错,,,
- 求助:asp.net页面布局的问题?
- 请问大家是如何写分页的(急!)
- 哪里有现成的论坛下载?急(help me!)
- 冰天雪地,跪求各位大侠:小弟刚毕业想去广东求职学习,广东哪里有用.net做大型项目的公司吗?
- 在线编辑器保存到字段的内容,如何截取我要的长度?
- 新手中的!新手, 有问题询问
<option>Volvo</option>
<option selected="selected">Saab</option>
<option>Mercedes</option>
<option>Audi</option>
</select>
设置checked属性。<input type="radio" name="fruit" value = "Apple">苹果<br>
<input type="radio" name="fruit" value = "Orange" checked=true>桔子<br>
<input type="radio" name="fruit" value = "Mango">芒果<br>
{
authorityname = "管理员";
authority = "1";
}
if (RadioButton2.Checked = true)
{
authorityname = "专家";
authority = "2";
}
if (RadioButton3.Checked = true)
{
authorityname = "用户";
authority = "3";
}
此时,这三个单选按钮都可以选,后来用单选按钮组有三个单选按钮,如何表示其中的一项?
if (RadioButton1.Checked)
{
authorityname = "管理员";
authority = "1";
}
else if (RadioButton2.Checked)
{
authorityname = "专家";
authority = "2";
}
else (RadioButton3.Checked)
{
authorityname = "用户";
authority = "3";
}
<asp:ListItem Text="管理员" Value="1"></asp:ListItem>
<asp:ListItem Text="专家" Value="1"></asp:ListItem>
</asp:RadioButtonList>在后台使用this.RadioButtonList1.SelectedValue获取选中的值