protected void Page_Load(object sender, EventArgs e) { _role = CheckAccount(); if (string.IsNullOrEmpty(Request["zId"])) { // if (!string.IsNullOrEmpty(Request["zId"]) && !IsPostBack) Response.Redirect("~/About.aspx"); } _wz = Int32.Parse(Request["zId"]); if (!IsPostBack) { App_Code.Base db = new App_Code.Base(WebConfigurationManager.ConnectionStrings["DefaultConnection"].ToString()); DataTable data = db.GetDoc(_wz); if (data.Rows.Count < 1) { Response.Redirect("~/About.aspx"); } // Id.Text = _wz.ToString(); Name.Text = data.Rows[0]["Name"].ToString(); NumEvent.Text = data.Rows[0]["NumEvent"].ToString(); NameFile.Text = data.Rows[0]["NameFile"].ToString(); Status.Text = data.Rows[0]["Status"].ToString(); Prim1.Text = data.Rows[0]["Prim"].ToString(); if (_role == "ODS_tsg") { phPodp.Visible = true; } if (_role == "Cadry" || _role == "Manager") { DelDoc.Visible = true; } } }