protected void Page_Load(object sender, EventArgs e) { B_User.CheckIsLogged(Request.RawUrl); id = Request.QueryString["id"]; DataTable dom = domListBll.SelByID(id); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "setValue('" + dom.Rows[0]["RegInfo"] + "');", true); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='Default.aspx'>站群管理</a></li><li class='active'>添加绑定</li>"); DataBindDP(); DataBindUser(); if (Mid > 0) { domListBtn.Text = "修改"; DataTable doml = domListBll.SelByID(Mid.ToString()); if (doml != null) { domListT1.Text = doml.Rows[0]["DomName"].ToString(); domListT1.Enabled = false; M_UserInfo muser = new M_UserInfo(); muser = buser.GetUserByUserID(DataConverter.CLng(doml.Rows[0]["OwnUserID"].ToString())); DomListDPBind(muser.UserID); domListT2.Text = muser.UserName; domListT2.Enabled = true; domListT3.Text = DataConvert.CDate(doml.Rows[0]["CreatDate"].ToString()).ToString("yyyy/MM/dd"); yearDP.SelectedValue = doml.Rows[0]["Year"].ToString(); sitetab1.Visible = false; sitetab2.Visible = true; Page.ClientScript.RegisterStartupScript(this.GetType(), "", "setValue('" + doml.Rows[0]["RegInfo"] + "');", true); } } } }