예제 #1
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (DateTime.Now > CompiledOn.CompilationDate.AddDays(45.0))
     {
         writer.Write("This is a trial version of jqSuite for ASP.NET which has expired.<br> Please, contact [email protected] for purchasing the product or for trial extension.");
         return;
     }
     Guard.IsNullOrEmpty(this.ID, "You have to set ID for this JQAutoComplete instance.");
     Guard.IsNullOrEmpty(this.DataTextField, "DataTextField", "DataTextField should be set to the datafield (column) of the datasource to search in.");
     Guard.IsTrue(this.SearchOperation != SearchOperation.BeginsWith && this.SearchOperation != SearchOperation.Contains, "SearchOperation: Currently only BeginsWith and Contains are supported as valid search operations.");
     if (!base.DesignMode)
     {
         JQAutoCompleteRenderer jQAutoCompleteRenderer = new JQAutoCompleteRenderer(this);
         writer.Write(jQAutoCompleteRenderer.RenderHtml());
     }
 }
예제 #2
0
 protected override void Render(HtmlTextWriter writer)
 {
     if (DateTime.Now > CompiledOn.CompilationDate.AddDays(45.0))
     {
         writer.Write("This is a trial version of jqSuite for ASP.NET which has expired.<br> Please, contact [email protected] for purchasing the product or for trial extension.");
         return;
     }
     Guard.IsNullOrEmpty(this.ID, "You have to set ID for this JQAutoComplete instance.");
     Guard.IsNullOrEmpty(this.DataTextField, "DataTextField", "DataTextField should be set to the datafield (column) of the datasource to search in.");
     Guard.IsTrue(this.SearchOperation != SearchOperation.BeginsWith && this.SearchOperation != SearchOperation.Contains, "SearchOperation: Currently only BeginsWith and Contains are supported as valid search operations.");
     if (!base.DesignMode)
     {
         JQAutoCompleteRenderer jQAutoCompleteRenderer = new JQAutoCompleteRenderer(this);
         writer.Write(jQAutoCompleteRenderer.RenderHtml());
     }
 }