Ejemplo n.º 1
0
 /// <summary>
 /// Binds the Data to PageName Dropdown
 /// Added By: Praveena 
 /// Date:10/09/2010
 /// Reason: To Populate Values in PageName Dropdown
 /// </summary>
 /// <param name="cboList"></param>
 /// <param name="strListname"></param>
 /// <param name="strCAMLQuery"></param>
 protected void BindPageNameDropDown(DropDownList cboList, string listName)
 {
     string strBookId = HttpContext.Current.Request.QueryString["BookId"];
     string strCamlQuery = @"<Where><Eq><FieldRef Name='Book_ID' />
          <Value Type='Number'>" + strBookId + "</Value></Eq></Where>";
     objWellBook = new WellBookBLL();
     cboList.Items.Clear();
     cboList.DataSource = objWellBook.GetPageNamesList(strSiteURL, listName, strCamlQuery);
     cboList.DataTextField = "key";
     cboList.DataBind();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Binds the Data to PageName Dropdown in Change Page Owner Page
 /// Added By: Praveena 
 /// Date:3/09/2010
 /// Reason: To Populate Values in PageName Dropdown for module Add addtional attribute to ChnagePageOwner
 /// </summary>
 /// <param name="cboList"></param>
 /// <param name="strListname"></param>
 /// <param name="strCAMLQuery"></param>
 protected void BindPageNames(DropDownList cboList, string listName, string CAMLQuery)
 {
     objWellBookBLL = new WellBookBLL();
     cboList.Items.Clear();
     cboList.DataSource = objWellBookBLL.GetPageNamesList(strParentSiteURL, listName, CAMLQuery);
     cboList.DataTextField = "key";
     cboList.DataBind();
 }