Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AuthenticateUser();
            intProfile      = Int32.Parse(Request.Cookies["profileid"].Value);
            oCustomized     = new Customized(intProfile, dsn);
            oPage           = new Pages(intProfile, dsn);
            oServiceRequest = new ServiceRequests(intProfile, dsn);
            oRequest        = new Requests(intProfile, dsn);
            if (Request.QueryString["rid"] != null && Request.QueryString["rid"] != "")
            {
                intRequest = Int32.Parse(Request.QueryString["rid"]);
            }

            ds = oCustomized.GetIssue(intRequest);

            if (!IsPostBack)
            {
                drpModules.DataSource     = oPage.Gets(0, 1);
                drpModules.DataTextField  = "title";
                drpModules.DataValueField = "pageid";
                drpModules.DataBind();
                drpModules.SelectedValue = ds.Tables[0].Rows[0]["pageid"].ToString();

                txtTitle.Text       = ds.Tables[0].Rows[0]["title"].ToString();
                txtDescription.Text = ds.Tables[0].Rows[0]["description"].ToString();
                txtNumUsers.Text    = ds.Tables[0].Rows[0]["num_users"].ToString();
                txtURL.Text         = ds.Tables[0].Rows[0]["url"].ToString();
                lblPath.Text        = ds.Tables[0].Rows[0]["path"].ToString();
            }
        }