예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DDLHelper.LoadNumberDDL(ref drpDay, 31, 1, 1);
         DDLHelper.LoadNumberDDL(ref drpMonth, 12, 1, 1);
         DDLHelper.LoadNumberDDL(ref drpYear, 2010, 1, 2000);
         DDLHelper.BindDDL(ref drpPageCategory, BINROTA.BUS.PageCategories.GetPageCategoriesAll(), "PageCategoryName", "PageCategoryID", "");
     }
 }
예제 #2
0
 private void FillDropDowns()
 {
     DDLHelper.BindDDL(ref drpCountry, BINROTA.BUS.Subjects.GetSubjectForDDL((int)Enumerations.SubjectType.Ulke), "Name", "SubjectID", "", "Bir Ülke Seçiniz", "0");
     drpCountry.SelectedValue = "4658";
     DDLHelper.BindDDL(ref drpCity, BINROTA.BUS.Subjects.GetSubjectBySubjectID(int.Parse(drpCountry.SelectedValue), (int)Enumerations.SubjectType.Sehir), "Name", "SubjectID", "", "Bir Þehir Seçiniz", "");
     DDLHelper.BindDDL(ref drpJob, BINROTA.BUS.Jobs.GetJobs(), "Job", "JobID", "", "Bir Meslek Seçiniz", "");
     DDLHelper.LoadNumberDDL(ref drpDay, 31);
     DDLHelper.LoadNumberDDL(ref drpMonth, 12);
     DDLHelper.LoadNumberDDL(ref drpYear, DateTime.Today.Year, 1, 1920);
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DDLHelper.LoadNumberDDL(ref drpDay, 31);
         DDLHelper.LoadNumberDDL(ref drpMonth, 12);
         DDLHelper.LoadNumberDDL(ref drpYear, DateTime.Today.Year, 1, 1920);
         UserControl();
         lnbDeletePortrait.Attributes.Add("onclick", "return confirm('Resmi silmek istediðinizden emin misiniz?');");
         imgMemberPortrait.Attributes.Add("onerror", "this.src='Images/Design/NoPicture.jpg';");
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (SessRoot != null)
         {
             DDLHelper.LoadNumberDDL(ref drpDay, 31);
             DDLHelper.LoadNumberDDL(ref drpMonth, 12);
             DDLHelper.LoadNumberDDL(ref drpYear, DateTime.Today.Year, 1, 1920);
             UctrlPageCategories1.BindCategories();
             if (Request.QueryString["PageID"] == "0" || Request.QueryString["PageID"] == null)
             {
                 if (Request.QueryString["SubjectID"] != null)
                 {
                     if (Util.IsNumeric(Request.QueryString["SubjectID"]))
                     {
                         this.SubjectID = int.Parse(Request.QueryString["SubjectID"].ToString());
                     }
                 }
                 this.SaveMode = Enumerations.SaveMode.Insert;
                 BindDDL();
             }
             else
             {
                 if (Util.IsNumeric(Request.QueryString["PageID"]))
                 {
                     this.PageID   = int.Parse(Request.QueryString["PageID"]);
                     this.SaveMode = Enumerations.SaveMode.Update;
                     FillForm();
                 }
                 else
                 {
                     Response.Write("<script language='javascript'> { window.close();}</script>");
                 }
             }
         }
         else
         {
             BINROTA.COM.Common.GotoDefaultPage(this.Response);
         }
     }
 }
예제 #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (SessRoot == null)
            {
                this.MemberVisitorID = 0;
            }
            else
            {
                this.MemberVisitorID = SessRoot.UserID;
            }
            DDLHelper.LoadNumberDDL(ref drpPoints, 5, 1, 1);
            DDLHelper.LoadNumberDDL(ref drpPoints2, 5, 1, 1);
            PageIDControl();

            FillPageDetail();

            FillMemberDetail();

            FillComment();
        }
    }