예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    // Logout.Visible = false;
                    Response.Redirect("Login.aspx");
                }
                if (!string.IsNullOrEmpty(Request.QueryString["role"]))
                {
                    string roleid = Request.QueryString["role"].ToString();
                }

                DataTable dt = pl.GetAllProduct();
                datalist.DataSource = dt;
                datalist.DataBind();
            }
        }