private void EditUser() { string str = LSRequest.qq("txtTitle"); string str2 = LSRequest.qq("txtContent"); string str3 = LSRequest.qq("sltUType"); string str4 = LSRequest.qq("rdoShow"); string s = LSRequest.qq("rdoTop"); if ((s != "0") && (s != "1")) { s = "0"; } if (string.IsNullOrEmpty(str)) { base.Response.Write(base.GetAlert("請輸入標題!")); base.Response.End(); } if (str.Length > 50) { base.Response.Write(base.GetAlert("輸入標題需小於50字符!")); base.Response.End(); } if (string.IsNullOrEmpty(str2)) { base.Response.Write(base.GetAlert("請輸入內容!")); base.Response.End(); } cz_ad _ad = new cz_ad(); _ad.set_ad_id(Convert.ToInt32(LSRequest.qq("adid"))); _ad.set_allow_show(new int?(Convert.ToInt32(str4))); _ad.set_type(new int?(Convert.ToInt32(str3))); _ad.set_title(str); _ad.set_ad_content(str2); _ad.set_is_top(new int?(int.Parse(s))); _ad.set_lottery_master_id(this.lottery_master_id); if (CallBLL.cz_ad_bll.UpdateAd(_ad)) { string url = "news_list.aspx?page=" + LSRequest.qq("page"); base.Response.Write(base.ShowDialogBox("修改站內消息成功!", url, 1)); base.Response.End(); } else { base.Response.Write(base.ShowDialogBox("修改站內消息失敗!", "", 400)); base.Response.End(); } }