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

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/27 03:58:42

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

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