protected void BtnCheckout_Click(object sender, EventArgs e) { GridView2.Visible = true; LabelChoose.Visible = true; GridView2.DataSource = ViewPaymentTypeController.FetchDataPaymentType(); GridView2.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Session["LoginSession"] == null) { Response.Redirect("../HomeView/Home.aspx"); } else { String ID = Session["LoginSession"].ToString(); MsUser user = HomeController.FetchDataForHome(ID); if (user.RoleID != "RL1") { Response.Redirect("../HomeView/Home.aspx"); } else { GridView1.DataSource = ViewPaymentTypeController.FetchDataPaymentType(); GridView1.DataBind(); } } }