//AUTHOR : TAN WEN SONG protected void Page_Load(object sender, EventArgs e) { Employee user = (Employee)Session["emp"]; if (user != null) { try { gvForStationeryCatalogue.DataSource = EFBroker_Item.GetCatalogueList(); } catch (Exception sql) { Response.Redirect(LoginController.ErrorPageURI); } if (!IsPostBack) { gvForStationeryCatalogue.DataBind(); DisplayClickableURL(); } } else { Utility.logout(); } }
public static List <Item> GetCatalogueList() { return(EFBroker_Item.GetCatalogueList()); }