예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(HttpContext.Current.Request.Url.PathAndQuery, "/");

            MenuLoader.loadMenu(Menu1, strUrl, UserType.ADMIN);
            dbAccess = new BLL_Library.blAccess();

            LinqDataSource1.EnableUpdate = true;

            GridView1.RowCommand += GridView1_RowCommand;
        }
예제 #2
0
        private static void loadMenuThemeReader(MenuItem menu, String baseUrl)
        {
            BLL_Library.blAccess dbAccess = new BLL_Library.blAccess();

            MenuItem addedItem = addChildMenu("Theme", menu, "", false);

            foreach (DAL_Library.Type theme in dbAccess.getThemes())
            {
                if (theme.Status == dbAccess.getStatus("Active").Id)
                {
                    addChildMenu(theme.Type1, addedItem, null);
                }
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            dbAccess = new BLL_Library.blAccess();

            MenuLoader.loadMenu(Menu1, strUrl, UserType.NONE);

            Wizard1.FinishButtonClick  += Wizard1_NextStep;
            Wizard1.NextButtonClick    += Wizard1_NextStep;
            Wizard1.SideBarButtonClick += Wizard1_NextStep;

            if (!IsPostBack)
            {
                RadioButtonList1.Items[0].Selected = true;
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(HttpContext.Current.Request.Url.PathAndQuery, "/");

            MenuLoader.loadMenu(Menu1, strUrl, UserType.ADMIN);
            dbAccess = new BLL_Library.blAccess();
            if (!IsPostBack)
            {
                MultiView1.SetActiveView(JournalistView);

                Session["fromDate"] = DateTime.MinValue;
                Session["toDate"]   = DateTime.MaxValue;
            }
            DropDownList1.SelectedIndexChanged += DropDownList1_SelectedIndexChanged;
            Calendar1.SelectionChanged         += fromCalendarChanged;
            Calendar2.SelectionChanged         += toCalendarChanged;
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(HttpContext.Current.Request.Url.PathAndQuery, "/");

            MenuLoader.loadMenu(Menu1, strUrl, UserType.ADMIN);

            dbAccess = new BLL_Library.blAccess();
            if (!IsPostBack)
            {
                MultiView1.SetActiveView(NewsView);
            }

            DropDownList1.SelectedIndexChanged += DropDownList1_SelectedIndexChanged;

            GridView1.RowCommand += GridView1_RowCommand;
            GridView2.RowCommand += GridView2_RowCommand;
            GridView3.RowCommand += GridView3_RowCommand;
        }