protected void Page_Load(object sender, EventArgs e) { FileManager fm = new FileManager(); if (!IsPostBack) { //populate the drop down lists permissionDDL.DataSource = Roles.GetAllRoles(); permissionDDL.DataBind(); categoryDDL.DataSource = fm.getCategories(); categoryDDL.DataBind(); } }