if(RadioButtonList.selectedItem.value==null)
解决方案 »
- 难题--取不到datalist中的TextBox新输入的值
- 小弟想学ASP.NET,大家帮我介绍几本入门的好书啊,五一散分了,见者有份啊
- 为什么要么要把 resx文件迁出
- 简单的问个问题:如何在网页中确定用户是内网用户还是外网用户,求助。
- 如何用utf-8而不显示乱码
- windows2003下cookie,为何读不到值?
- 怎么把加密存储的密码还原?只有还原后才能用它连接SQLServer数据库呀!
- 用web控件时,如何链接css样式文件?
- 怎么设置机器,才能达到输入127.0.0.1就能浏览ASP.net的网页?
- 怎么样可以读出访问页面者的IP地址,求代码例子。
- .net中的奇怪错误!
- 急问:怎么在ASP.NET中调用同时带有输入参数和输入参数的存储过程??
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30201: 需要表达式。Source Error:Line 17: <script runat="server">
Line 18: Sub tj_click(Src As Object, E As EventArgs)
Line 19: if test.selectedItem.value==null then
Line 20: response.Write("ok")
Line 21: else
Source File: H:\web\vote\test.aspx Line: 19
{
Response.Write("没有选中");
}
else
{
Response.Write("选中了");
}
<asp:RequiredFieldValidator ControlToValidate="RadioButtonList1" id="RequiredFieldValidator1" runat="server" ErrorMessage="还未选择"></asp:RequiredFieldValidator>