用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>为什么老是编译出错了??大家帮忙看看!