the txtbox wirtten value search in dropdownlist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asmx126453
    New Member
    • Sep 2008
    • 72

    #16
    Tnx for the reaction but i still get the same error

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #17
      On line 511 in the generated source code, you have
      Code:
      <input name="txtKlant1" type="text" id="txtKlant1" onKeyUp="javascript:KlantlijstChange(document.VerzamelbladOverzicht.txtKlant1, document.VerzamelbladOverzicht.DDLKlant1);" style="width:247px;" /></td>
      You need to change that line too to use the correct form name. Now if this line is generated by ASP.NET, then you may need to make a change in the ASPX file.

      Comment

      • asmx126453
        New Member
        • Sep 2008
        • 72

        #18
        Oke very weird if i look at the code again in IE the code is goed there is know 2 spaces between VerzamelbladOve richt

        and in my aspx page there is also nothing like that with 2 paces between i dont understand how there cud be 2 spaces between i just copied and pasted ???

        Tanx for all your help to bed its not solved yet i have been trying to solve it the hole day and i cant find the error

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #19
          Oh yeah, that's a bug with the code tags on this site. If you click on Reply, you'll see that the original posted code doesn't have spaces.

          Comment

          • asmx126453
            New Member
            • Sep 2008
            • 72

            #20
            Oke I realy dont now what to do now anymore yesterday my application worked as far as i wanted i at least dident get an error on rule 2 now i again get on error on rule 2

            Code:
            <body onload="InitCombobox(document.VerzamelbladOverzicht.txtKlant1, document.VerzamelbladOverzicht.DDLKlant1);"> 
                    <form id="Span2" runat="server"> 
                        <P><SPAN id="Form1" runat="server"></SPAN><asp:button id="btnDoNix" style="Z-INDEX: 103; LEFT: 12px; POSITION: absolute; TOP: 33px" runat="server" Width="1px" Height="1px" BackColor="#567C9C" BorderColor="#567C9C"></asp:button><asp:label id="lblHead" runat="server" Font-Size="Medium" ForeColor="White" Font-Bold="True">Verzamelbladen</asp:label><asp:dropdownlist id="DDLKlant1" style="Z-INDEX: 102; LEFT: 221px; POSITION: absolute; TOP: 14px" runat="server" Width="246px"></asp:dropdownlist></P>
            the error is the same: Runtime-fout Microsoft JScript: 'document.Verza melbladOverzich t.txtKlant1' is empty or not an object

            the problem is that i can not get 2 my internet page VerzamelbladOve rzicht yesterday i got it to work but now with the same code its seems to fail

            1 more weird thing is that if i make this rule like this

            document.Verzam elbladOverzicht .txtKlant1
            document.Verzam elbladOverzicht .txtKla nt1

            than i can get in the page but i get one error wirh rule 12 ')' is espected

            hope somone has an idee becase i dont now what to do anymore

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #21
              If you're going to use that code, instead of calling the form "Span2", call it "VerzamelbladOv erzicht".

              Comment

              • asmx126453
                New Member
                • Sep 2008
                • 72

                #22
                Yep you where right again now i can open the page tanx for all your good help

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #23
                  You're welcome. Glad you've got it working :)

                  Comment

                  Working...