用RadioButtonList控件创建了5个ListItem分别为实验一至五
我要是选择实验一时,指定文件路径
if(RadioButtonList1.SelectedValue=‘1’)
FileUpload1.SaveAs(Server.MapPath("~/UpLoadFile/zuoye/shiyan1") + FileUpload1.FileName);
这个是.aspx中的代码
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
EnableTheming="True" RepeatDirection="Horizontal" style="margin-left: 0px"
Height="26px" onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Value='1'>实验一</asp:ListItem>
<asp:ListItem Value='2'>实验二</asp:ListItem>
<asp:ListItem Value='3'>实验三</asp:ListItem>
<asp:ListItem Value='4'>实验四</asp:ListItem>
<asp:ListItem Value='5'>实验五</asp:ListItem>
</asp:RadioButtonList>为什么老是编译出错了??大家帮忙看看!
我要是选择实验一时,指定文件路径
if(RadioButtonList1.SelectedValue=‘1’)
FileUpload1.SaveAs(Server.MapPath("~/UpLoadFile/zuoye/shiyan1") + FileUpload1.FileName);
这个是.aspx中的代码
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
EnableTheming="True" RepeatDirection="Horizontal" style="margin-left: 0px"
Height="26px" onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Value='1'>实验一</asp:ListItem>
<asp:ListItem Value='2'>实验二</asp:ListItem>
<asp:ListItem Value='3'>实验三</asp:ListItem>
<asp:ListItem Value='4'>实验四</asp:ListItem>
<asp:ListItem Value='5'>实验五</asp:ListItem>
</asp:RadioButtonList>为什么老是编译出错了??大家帮忙看看!
解决方案 »
- asp:Image绑定ImageUrl无效的问题
- 异步调用backgroundworker或委托或新线程来呈现progressbar大神进
- 论坛里的朋友帮忙推荐几个ASP.NET程序QQ技术群!!!
- asp.net獲取系統圖標
- 关于线程的问题,疑惑,谢谢
- 如何用button按钮取select的值放入textbox控件中?
- 两个dataset绑定成一个dataset怎么显示?
- 20分,求救一窗口关闭问题.马上结帐.
- 怎样在本地调试asp.net程序
- 在WINDOWS 2000 SERVER中安装.NET Framework 需注意的一些小问题(个人经验)
- 问几个问题,PDF......
- 如何把在登录时选择的数据库服务器链接写入程序?
运算符“==”无法应用于“string”和“char”类型的操作数
要么 if(RadioButtonList1.selectedIndex == 0)