/// <summary> /// 控件行命令事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void repInfo_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName.Equals("del")) { int id = Convert.ToInt32(e.CommandArgument); Common_OnlineMessageService.Delete(id); LoadData(); } if (e.CommandName.Equals("view")) { int id = Convert.ToInt32(e.CommandArgument); Common_OnlineMessage item = Common_OnlineMessageService.GetModel(id); if (item != null) { ViewState["mobile"] = item.mobile; ViewState["realName"] = item.name; ViewState["addTime"] = item.addTime.ToString("yyyy-MM-dd HH:mm"); ViewState["tel"] = item.tel; ViewState["email"] = item.email; ViewState["qq"] = item.qq; ViewState["address"] = item.qq; ViewState["addTime"] = item.addTime.ToString("yyyy-MM-dd HH:mm"); ViewState["mesInfo"] = item.mesContent; } ScriptManager.RegisterStartupScript(this.form1, GetType(), "", "$('#wfullbg').show();$('#layer').show();", true); } }