DropDownList SelectedIndexChanged not firing for extra <form>

Discussion in 'ASP .Net Web Controls' started by George, Sep 8, 2004.

  1. George

    George Guest

    I'm using .NET framework 1.1 and VS.NET 2003 for a aspx web form.

    There is a DropDwonList on the page and its SelectedIndexChanged event is
    fired to the server normally, until when I add another form "FormDummy" onto
    the main form, and then the event no longer fires again when the user change
    the value of the drop down list.

    Can anybody help ? Thanks so much!

    The aspx code is as follows:
    (Every thing works fine is the form "FormDummy" is abscent !)

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
    Inherits="HKG.WebForm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>WebForm1</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema"
    content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">

    <form id="FormDummy" method="post">
    </form>

    <form id="Form2" method="post">
    <asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 168px;
    POSITION: absolute; TOP: 64px"
    runat="server" Width="160px" AutoPostBack="True">
    <asp:ListItem Value="1">1</asp:ListItem>
    <asp:ListItem Value="2">2</asp:ListItem>
    <asp:ListItem Value="3">3</asp:ListItem>
    </asp:DropDownList>
    </form>
    </form>
    </body>
    </HTML>
    George, Sep 8, 2004
    #1
    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. DesignerX
    Replies:
    2
    Views:
    3,816
    Bob Carsto
    Nov 14, 2003
  2. Paul Lacey
    Replies:
    2
    Views:
    2,690
    =?Utf-8?B?TmlrYW5kZXIgJiBNYXJncmlldCBCcnVnZ2VtYW4=
    Feb 17, 2005
  3. =?Utf-8?B?R2Vvcmdl?=
    Replies:
    4
    Views:
    3,698
    =?Utf-8?B?SmVyZW15IERhdmlz?=
    Sep 8, 2004
  4. Lew Barnesson
    Replies:
    3
    Views:
    799
    Lew Barnesson
    Dec 4, 2004
  5. =?Utf-8?B?Q3VybHlGcm8=?=

    dropdownlist selectedIndexChanged event not firing

    =?Utf-8?B?Q3VybHlGcm8=?=, Aug 14, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,614
    =?Utf-8?B?Q3VybHlGcm8=?=
    Aug 14, 2005
Loading...

Share This Page