关于c#中RadioButtonList控件的取值问题
我试过,没有问题的
我没有用RadioButtonList1_SelectedIndexChanged这个,不知道这个事件你写的是什么代码
前台代码:
《asp:RadioButtonList ID=“RadioButtonList1“ runat=“server“ 》
《asp:ListItem Value=“1“ Selected=“True“ Text=“学生“》学生《/asp:ListItem》
《asp:ListItem Value=“2“ Text=“教师“》教师《/asp:ListItem》
《asp:ListItem Value=“3“ Text=“管理员“》管理员《/asp:ListItem》
《/asp:RadioButtonList》
《asp:Button ID=“LoginButton“ runat=“server“ Text=“LoginButton“ OnClick=“LoginButton_Click“ /》-to
登录:
protected void LoginButton_Click(object sender, EventArgs e)
{
if (RadioButtonList1.SelectedIndex == 0)
{
Response.Redirect(“Student.aspx“);
}
else if (RadioButtonList1.SelectedIndex == 1)
{
Response.Redirect(“Teacher.aspx“);
}
else if (RadioButtonList1.SelectedIndex == 2)
{
Response.Redirect(“Admin.aspx“);
}
}
insert into select 可以加where条件么
可以加
例:
insert into [表名]([列名1],[列名2],[列名3],...)
select [列名1],[列名2],[列名3],... from [表名2]
where [条件]
hectic是什么意思
hectic
[英][ˈhektɪk][美][ˈhɛktɪk]
adj.繁忙的,忙乱的; 兴奋的,狂热的; (因患肺病等)发烧的; 患热病的;
n.肺病热患者; [医]潮红;
以上结果来自金山词霸
例句:
1.
It has been a hectic year for food companies in america.
对美国食品公司来说今年是忙碌的一年。
2.
With today’s hectic schedules, a full sit-down breakfast isn’t always possible.
对于有着繁忙时间安排的今天,好好坐下来吃顿早餐并不容易。
-c