protected void Page_Load(object sender, EventArgs e) { DataTable dt; BLL.GSOrder _Bll = new BLL.GSOrder(); dt = _Bll.getGSOder_All(); RadGrid1.DataSource = dt; }
private Boolean genSesion(String GSOrderID) { DataTable dt; BLL.GSOrder _BLL = new BLL.GSOrder(); dt = _BLL.getGSOder_Report(GSOrderID); Session["DATATABLE"] = dt; return(true); }
protected void Page_Load(object sender, EventArgs e) { if (Session["USER"] == null) { Response.Redirect("Authorize.aspx"); } DataTable dt; BLL.GSOrder _Bll = new BLL.GSOrder(); dt = _Bll.getGSOder_All(); RadGrid1.DataSource = dt; }
protected void LogIn(object sender, EventArgs e) { String _userName, _password; _userName = UserName.Text.ToString(); _password = Password.Text.ToString(); DataTable dt; BLL.GSOrder _Bll = new BLL.GSOrder(); dt = _Bll.getUSER_Login(_userName, _password); if (dt.Rows.Count > 0) { Session["USER"] = dt.Rows[0]["Login"].ToString(); Response.Redirect("GSOrder.aspx"); } }