if (string.IsNullOrEmpty(Request["DropDownList1"])) return;

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/01 08:58:03

if (string.IsNullOrEmpty(Request["DropDownList1"])) return;
if (string.IsNullOrEmpty(Request["DropDownList1"])) return;

if (string.IsNullOrEmpty(Request["DropDownList1"])) return;
页面DropDownList1不存在或者选中值为空的话,直接返回.