protected void Page_Load(object sender, EventArgs e)
    {
        AdminMasterPage.InitPage(this, "Start page", false);
        int articleId = Utils.GetArticleId(this);

        ucArticles.InitControl(articleId, 10, true);
    }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "Upload image");
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "You are not authorized to view the page.");
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Candidates", true);
     try
     {
         int articleId = RequestUtils.GetArticleId(this);
         this.SqlDataSource1.SelectParameters["PositionId"].DefaultValue = articleId.ToString();
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Album photo");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log = AdminMasterPage.InitPage(this, "Edit article");
         int ar = RequestUtils.GetArticleId(this);
         if (ar != 0)
         {
             ucArticleParams.InitControl(ar);
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Messages log", true);
         gridHelper = new GridHelper(this, gridView);
         if (!IsPostBack)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Poll answer");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
         }
         ucPollAnswer.InitControl(pollAnswer);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Positions", true);
     try
     {
         int articleId = 0;
         using (var conn = Global.CreateConnection())
         {
             articleId = Article.GetArticleId(conn, "Positions");
         }
         ucPositions.InitControl(articleId, 20, true);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         log        = AdminMasterPage.InitPage(this, "Edit article");
         pageHelper = new PageHelper(this);
         if (!IsPostBack)
         {
             LoadData();
             //				PrivateMasterPage.InitPage(this, user.Id == 0 ? "Add пользователя" : "Пользователь", false);
         }
         ucArticle.InitControl(article);
     }
     catch (Exception ex)
     {
         log.Exception(ex);
     }
 }
예제 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     log = AdminMasterPage.InitPage(this, "Control panel", false);
 }