protected void Page_Load(object sender, EventArgs e) { sec = new SecondaryEntitiesManager(); de = new DynamicElements(); serv = new ServicesManager(); em = new EmailNotifications(); rtq = new RTQManager(); if (!IsPostBack) {/* if (Request.Form["MethodName"] == "GetL") { getList(); return; }*/ //generateRooms(); } }
protected void Page_Load(object sender, EventArgs e) { sec = new SecondaryEntitiesManager(); de = new DynamicElements(); if (!Page.IsPostBack) { // call populate table and pass the main object this cs file is working with generateRADSTable(new CleaningType()); // check the method name, if the JSON call asks for update, // call the code behind's Update method #region Ajax methods if (Request.Form["MethodName"] == "UpdateC")// same Method Name { UpdateCtype(); return; } if (Request.Form["MethodName"] == "AddC") { addCType(); return; } if (Request.Form["MethodName"] == "DeleteC") { deleteCtype(); return; } #endregion } }
protected void Page_Load(object sender, EventArgs e) { sec = new SecondaryEntitiesManager(); de = new DynamicElements(); // bind the gridview to whatever data is in the db sec.getAreasDrop(test); if (!Page.IsPostBack) { // call populate table and pass the main object this cs file is working with generateRADSTable(new Area()); // check the method name, if the JSON call asks for update, // call the code behind's Update method #region Ajax methods if (Request.Form["MethodName"] == "UpdateA")// same Method Name { UpdateArea(); return; } if (Request.Form["MethodName"] == "AddA") { addArea(); return; } if (Request.Form["MethodName"] == "DeleteA") { deleteArea(); return; } #endregion } }