2012年2月14日

判断DropDownList是否选中的几种方法

摘要: 1. 后台cs代码判断:DropDownList ddl=new DropDownList();绑定数据源时:ddl.DataSource=yourdatasource;ddl.Items.Insert(0,new ListItem( "请选择 ", "0 "));提交时:if(ddl.SelectedValue== "0 "){Response.Write( " <script> alert( '请您选择 ');window.history.back(); </script> &qu 阅读全文

posted @ 2012-02-14 10:02 zhangtao1212 阅读(556) 评论(0) 推荐(0) 编辑

导航