Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

How to use filtertextboxextender with controls in  gridview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tester - 18 Dec 2007 23:11 GMT
I have a gridview that is in an updatepanel, with textboxes for the
controls, and am trying to use the ajax filteredtextbox, but I get the error
that says "Textbox1" is not found.  Any ideas:

      <asp:GridView ID="gv">
      <FooterStyle BackColor="#CCCC99" />
      <Columns>
          <asp:TemplateField HeaderText="Client No.">
              <ItemTemplate>
               <table>
                   <tr>
                       <td><asp:Label ID="Label8" Font-Bold="true"
runat="server" Text="No."></asp:Label></td>
                   <tr>
                       <td><asp:TextBox ID="txtNo" Columns=4 runat="server"
Text='<%# Bind("ClientNo") %>'></asp:TextBox></td>
       <cc1:FilteredTextBoxExtender TargetControlID="txtNo"
FilterType="Numbers"
           ID="FilteredTextBoxExtender1" runat="server">
       </cc1:FilteredTextBoxExtender>
                   </tr>
                   </table>
              </ItemTemplate>
          </asp:TemplateField>
      </Columns>
      </asp:GridView><br />
Mike Placentra II - 23 Dec 2007 03:18 GMT
> I have a gridview that is in an updatepanel, with textboxes for the
> controls, and am trying to use the ajax filteredtextbox, but I get the error
> that says "Textbox1" is not found.

Why a TextBox in an ItemTemplate? Did you want to use it to filter the
records by putting it in the header?

It's weird that it complains about "Textbox1" not being found, is that
referring to some line in your server code?

Also, I noticed that your first <tr> is missing an end tag.

-Michael Placentra II

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.