RE: [aus-dotnet] ASP.NET 1.1 Control playing up


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
    • From: AJ Murray
    • Subject: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
    • Date: Wed, 13 Jun 2007 17:29:04 -0700

    Try a few things.
    
    You could try setting the Page directive AutoEventWireup to true.
    Or
    In the list declaration set the attribute OnSelectedIndexChanged="State_SelectedIndexChanged".
    
    Put a break point in the code and see which part of the page code is actually being called when the postback occurs. Does it occur? Is it going where you think?
    
    Also the postback will only happen if something changes in the control.
    
    
    Regards,
    AJ Murray
    MCADer
    -----
    Disclaimer: Any views or opinions presented are the personal opinion of the writer and do not necessarily represent those my employer or the owner of the domain address from which this email was sent. 
    -----
    Care About Your Craft : Why spend your life developing software unless you care about doing it well?
    
    > -----Original Message-----
    > From: peter@xxxxxxxxxxx [mailto:peter@xxxxxxxxxxx] On Behalf Of
    > stanski@xxxxxxxxxxxxxxxxxx
    > Sent: Thursday, 14 June 2007 10:01 AM
    > To: dotnet@xxxxxxxxxxx
    > Subject: [aus-dotnet] ASP.NET 1.1 Control playing up
    > 
    > Hello everyone,
    > 
    > I have a drop down list defined in my ascx file like so:
    > 
    > <asp:DropDownList id="State" AutoPostBack="True"
    > runat="server"></asp:DropDownList>
    > 
    > 
    > in the ascx.cs file, there is a variable declared:
    > 
    > protected System.Web.UI.WebControls.DropDownList State;
    > 
    > 
    > and in the InitializeComponent() method there is this line of code:
    > 
    > this.State.SelectedIndexChanged += new
    > System.EventHandler(this.State_SelectedIndexChanged);
    > 
    > 
    > Now when I run this thing, State_SelectedIndexChanged isn't called in my
    > application.  I have breakpoints else where that do their thing and get
    > called, but for some reason this event just doesn't want to fire off.
    > 
    > Has any one had similar issues?  Any work arounds?  Suggestions would be
    > great
    > 
    > Thank you in advance,
    > 
    > Andy
    > _________________
    > You are a part of the Australian "dotnet" mailing list. To unsubscribe send
    > "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet" in the body
    > of the email to: imailsrv@xxxxxxxxxxxx For assistance with this list please
    > email info@xxxxxxxxxxxx
    > List Managed by www.stanski.com and Proudly Sponsored by www.ico.com.au.
    > 
    
    ����������������ax�������v�gz�j)b�	b������&ޱ����&��gz���{����zw�����y���{ay�ʇ��j)m����쵩�ܢoŢ���+-jw�a���+-�W���)b���H��1�ځ�0���������$��{(��0�'(�
    
    
    



    (Click here for more information on the aus-dotnet mailling list)