asp.net mvc 中如何取RadioButton的值
1个回答
展开全部
Protected void Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
{
RadioButton1.AutoPostBack = True; //让RadioButton响应服务端事件.
RadioButton2.AutoPostBack = True;
.....
}
Protected void RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
{
变量 = 0;
}
Protected void RadioButton2_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
{
变量 = 1;
}
{
RadioButton1.AutoPostBack = True; //让RadioButton响应服务端事件.
RadioButton2.AutoPostBack = True;
.....
}
Protected void RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
{
变量 = 0;
}
Protected void RadioButton2_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
{
变量 = 1;
}
追问
我用的是razor做的 MVC3.0 而且你可能作一个 动态的dropdownlist做出来一个级联 从数据库中取出来 而且要用到Jquery做出来啊
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询