Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack) {
         AssignmentModelClass a = new AssignmentModelClass();
         System.Web.HttpApplication _context;
         _context = System.Web.HttpContext.Current.ApplicationInstance;
         string _root = "";
         _root = _context.Server.MapPath("~/");
         DropDownList1.DataSource = a.getfolders(_root);
         DropDownList1.DataBind();
     }
 }