Пример #1
0
 public override void init(HttpRequest Request, HttpSessionState Session)
 {
     if (vl != null)
     {
         string selectedValue = c.SelectedValue;
         if (selectedValue != null)
         {
             selectedValue = selectedValue.Trim();
         }
         System.Globalization.CultureInfo ci = System.Threading.Thread.CurrentThread.CurrentUICulture;
         WebFormUtils.loadValues(Binding.DBConn, c, vl, filter, ci, selectedValue, notSelected);
     }
     if (field.required)
     {
         c.CssClass = "pm_required";
     }
 }
Пример #2
0
 public override void init(System.Collections.Specialized.NameValueCollection Request, SearchContext context, SearchBinding binding, Hashtable values, DBManager db, System.EventHandler search)
 {
     c.SelectedIndexChanged += search;
     if (vl != null)
     {
         string selectedValue = c.SelectedValue;
         if (selectedValue != null)
         {
             selectedValue = selectedValue.Trim();
         }
         //CultureInfo ci= System.Globalization.CultureInfo.CurrentUICulture;
         if (hasNotSelected)
         {
             WebFormUtils.loadValues(binding.DBConn, c, vl, this.filter, ci, selectedValue, notSelected);
         }
         else
         {
             WebFormUtils.loadValues(binding.DBConn, c, vl, this.filter, ci, selectedValue, null);
         }
     }
 }