private void LoadFields()
 {
     try
     {
         CMSBL cmsBL = new CMSBL();
         DataTable pageDT = cmsBL.GetPage(hdnSiteID.Value, hdnChildPageID.Value);
         foreach (DataRow pageDR in pageDT.Rows)
         {
             txtPageName.Text = pageDR["PAGE_NAME"].ToString();
             txtPageCaption.Text = pageDR["PAGE_CAPTION"].ToString();
             txtMetaTitle.Text = pageDR["META_TITLE"].ToString();
             txtMetaKeywords.Text = pageDR["META_KEYWORDS"].ToString();
             txtMetaDescription.Text = pageDR["META_DESC"].ToString();
             ddlSortNumber.SelectedValue = pageDR["CHILD_SORT_PAGE_NUM"].ToString();
             string isPublished = pageDR["IS_PUBLISHED"].ToString();
             hdnMaxSortNum.Value = pageDR["CHILD_SORT_PAGE_NUM"].ToString();
             if (isPublished == "1")
                 rbYes.Checked = true;
             else
                 rbNo.Checked = true;
         }
     }
     catch (Exception ex)
     {
     }
 }
 private void LoadFields()
 {
     try
     {
         CMSBL cmsBL = new CMSBL();
         DataTable pageDT = cmsBL.GetPage(hdnSiteID.Value, hdnChildPageID.Value);
         foreach (DataRow pageDR in pageDT.Rows)
         {
             txtPageName.Text = pageDR["PAGE_NAME"].ToString();
             txtPageCaption.Text = pageDR["PAGE_CAPTION"].ToString();
             txtMetaTitle.Text = pageDR["META_TITLE"].ToString();
             txtMetaKeywords.Text = pageDR["META_KEYWORDS"].ToString();
             txtMetaDescription.Text = pageDR["META_DESC"].ToString();
         }
     }
     catch (Exception ex)
     {
     }
 }