Posts

Binding a list to a DropdownList

Page Lode()   {     BindUnits ( ddlUnit , "Units");   }    private void  BindUnits ( DropDownList   ddlUnits , string  lstName )           {               try               {                   SPSecurity.RunWithElevatedPrivileges(delegate()                   {                       using ( SPSite  site = new  SPSite ( SPContext.Current.Site.Url ))                       { ...

Validation Check Boxes Using JavaScript

 if (aspnetForm.ctl00$PlaceHolderMain$ddlKaizenCategory != "--Select Category--") {                      var   chkListModules  = document.getElementById('<%= cblBenefitCategory.ClientID %>');                     ////debugger;                      var   chkListinputs  = chkListModules.getElementsByTagName("input");                     for ( var   i  = 0;  i  < chkListinputs.length;  i ++) {                         if ( chkListinputs [ i ].checked) {   ...

Validating SharePoint People Picker Using JavaScript

 < SharePoint:PeopleEditor  ID=" pplContarctEmp "  runat ="server" Visible="false" Height="21px"                                     Width="200px"  MultiSelect ="false"  ValidatorEnabled ="true"  EnableBrowse ="true"                                      AllowEmpty ="false" />                                 < asp:CustomValidator  ID="CustomValidator1"  ClientValidationFunction ="CheckReportsTo1"           ...