protected void btn_send_Click(object sender, EventArgs e) { string msg = this.CheckControlValue(); if (!string.IsNullOrEmpty(msg)) { ScriptManager.RegisterStartupScript(this, this.GetType(), "", "showMessage('" + msg + "');", true); return; } List <IDataItem> list = this.GetControlValue(); WebCommon.AddDataItem(list, "Sxtxx", this.txtReceiverIds.Text); FunctionResult <string> result = BLL.SendGzzs(list); if (result.Status == FunctionResultStatus.Error) { ScriptManager.RegisterStartupScript(this, this.GetType(), "", "showError('" + result.Result + "');", true); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "", "SaveResult('" + result.Result + "');", true); } }