Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sql = new Request2();
            sql.Open();


            if (!IsPostBack)
            {
                SqlDataReader drrr = sql.GetRequestSupplies();
                GridView1.DataSource = drrr;
                GridView1.DataBind();
                drrr.Close();


                SqlDataReader dr1 = sql.GetSupply();

                ddl1.DataSource     = dr1;
                ddl1.DataTextField  = "Name";
                ddl1.DataValueField = "Name";
                ddl1.DataBind();
                dr1.Close();

                lbld.Text = DateTime.Now.ToShortDateString();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            sql = new Request2();
            sql.Open();

            if (!IsPostBack)
            {
                SqlDataReader drrr = sql.GetRequestSupplies();
                GridView1.DataSource = drrr;
                GridView1.DataBind();
                drrr.Close();

                SqlDataReader dr1 = sql.GetSupply();

                ddl1.DataSource = dr1;
                ddl1.DataTextField = "Name";
                ddl1.DataValueField = "Name";
                ddl1.DataBind();
                dr1.Close();

                lbld.Text = DateTime.Now.ToShortDateString();
            }
        }