What Happened

Discussion in 'ASP .Net Web Controls' started by Wayne Wengert, Feb 18, 2005.

  1. I have an aspx page that was working (honest!). I was adding some features
    and some validation code and all of a sudden I am getting the following
    errors:
    c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(101): Handles
    clause requires a WithEvents variable.
    c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(108): Name
    'txtSearchFor' is not declared.

    The relevant HTML code below shows that btnFind and txtSearchFor are both
    IDs of controls. What the heck is going on?

    ====================================================
    <asp:table id="Table1" style="Z-INDEX: 103; LEFT: 7px; POSITION: absolute;
    TOP: 179px" tabIndex="-1"
    runat="server" BorderWidth="0px" BorderStyle="None" BorderColor="Black"
    Width="381px" Height="81px">
    <asp:TableRow>
    <asp:TableCell ColumnSpan="1" HorizontalAlign="Center">Last Name to
    Search For:&nbsp;&nbsp;
    <asp:TextBox runat="server" Height="20px" Width="139px"
    ID="txtSearchFor" style="Z-INDEX: POSITION: relative;"></asp:TextBox>
    </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
    <asp:TableCell HorizontalAlign="Center">
    <asp:Button runat="server" Width="66px" ID="btnFind" Height="22px"
    Text="Find" style="Z-INDEX: 105; POSITION: relative; "></asp:Button>
    </asp:TableCell>
    </asp:TableRow>
    </asp:table>
     
    Wayne Wengert, Feb 18, 2005
    #1
    1. Advertising

  2. You didn't show us the codebehind where the Handles clause is said to be
    missing. An older version of VS.NET sometimes removed that clause, so you
    might want to check there.


    "Wayne Wengert" <> wrote in message
    news:%237H$...
    >I have an aspx page that was working (honest!). I was adding some features
    > and some validation code and all of a sudden I am getting the following
    > errors:
    > c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(101): Handles
    > clause requires a WithEvents variable.
    > c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(108): Name
    > 'txtSearchFor' is not declared.
    >
    > The relevant HTML code below shows that btnFind and txtSearchFor are both
    > IDs of controls. What the heck is going on?
    >
    > ====================================================
    > <asp:table id="Table1" style="Z-INDEX: 103; LEFT: 7px; POSITION: absolute;
    > TOP: 179px" tabIndex="-1"
    > runat="server" BorderWidth="0px" BorderStyle="None" BorderColor="Black"
    > Width="381px" Height="81px">
    > <asp:TableRow>
    > <asp:TableCell ColumnSpan="1" HorizontalAlign="Center">Last Name to
    > Search For:&nbsp;&nbsp;
    > <asp:TextBox runat="server" Height="20px" Width="139px"
    > ID="txtSearchFor" style="Z-INDEX: POSITION: relative;"></asp:TextBox>
    > </asp:TableCell>
    > </asp:TableRow>
    > <asp:TableRow>
    > <asp:TableCell HorizontalAlign="Center">
    > <asp:Button runat="server" Width="66px" ID="btnFind" Height="22px"
    > Text="Find" style="Z-INDEX: 105; POSITION: relative; "></asp:Button>
    > </asp:TableCell>
    > </asp:TableRow>
    > </asp:table>
    >
    >
     
    Ken Cox [Microsoft MVP], Feb 19, 2005
    #2
    1. Advertising

  3. I went back to a backup copy and that works? I expect I messed something up
    without realizing it.

    Wayne

    "Ken Cox [Microsoft MVP]" <> wrote in message
    news:...
    > You didn't show us the codebehind where the Handles clause is said to be
    > missing. An older version of VS.NET sometimes removed that clause, so you
    > might want to check there.
    >
    >
    > "Wayne Wengert" <> wrote in message
    > news:%237H$...
    > >I have an aspx page that was working (honest!). I was adding some

    features
    > > and some validation code and all of a sudden I am getting the following
    > > errors:
    > > c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(101): Handles
    > > clause requires a WithEvents variable.
    > > c:\inetpub\wwwroot\WBA_StaffControls\frmFindBand.aspx.vb(108): Name
    > > 'txtSearchFor' is not declared.
    > >
    > > The relevant HTML code below shows that btnFind and txtSearchFor are

    both
    > > IDs of controls. What the heck is going on?
    > >
    > > ====================================================
    > > <asp:table id="Table1" style="Z-INDEX: 103; LEFT: 7px; POSITION:

    absolute;
    > > TOP: 179px" tabIndex="-1"
    > > runat="server" BorderWidth="0px" BorderStyle="None"

    BorderColor="Black"
    > > Width="381px" Height="81px">
    > > <asp:TableRow>
    > > <asp:TableCell ColumnSpan="1" HorizontalAlign="Center">Last Name to
    > > Search For:&nbsp;&nbsp;
    > > <asp:TextBox runat="server" Height="20px" Width="139px"
    > > ID="txtSearchFor" style="Z-INDEX: POSITION: relative;"></asp:TextBox>
    > > </asp:TableCell>
    > > </asp:TableRow>
    > > <asp:TableRow>
    > > <asp:TableCell HorizontalAlign="Center">
    > > <asp:Button runat="server" Width="66px" ID="btnFind" Height="22px"
    > > Text="Find" style="Z-INDEX: 105; POSITION: relative; "></asp:Button>
    > > </asp:TableCell>
    > > </asp:TableRow>
    > > </asp:table>
    > >
    > >

    >
     
    Wayne Wengert, Feb 23, 2005
    #3
  4. It is just one of those computer things....

    "Wayne Wengert" <> wrote in message
    news:...
    >I went back to a backup copy and that works? I expect I messed something up
    > without realizing it.
    >
    > Wayne
    >
     
    Ken Cox [Microsoft MVP], Feb 24, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    602
    dbtid
    Oct 2, 2003
  2. James Dalton

    what happened to opencores.org

    James Dalton, Jul 23, 2004, in forum: VHDL
    Replies:
    8
    Views:
    1,803
  3. Jos
    Replies:
    1
    Views:
    363
    blenderdude
    Aug 7, 2003
  4. FrzzMan[
    Replies:
    3
    Views:
    1,665
    FrzzMan[
    May 30, 2004
  5. =?Utf-8?B?TW9oZWI=?=

    What happened to the Request.Form?

    =?Utf-8?B?TW9oZWI=?=, Sep 7, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    333
    =?Utf-8?B?TW9oZWI=?=
    Sep 8, 2004
Loading...

Share This Page