| Re: [aus-dotnet] ASP.NET 1.1 Control playing up |
- From: stanski
- Subject: Re: [aus-dotnet] ASP.NET 1.1 Control playing up
- Date: Wed, 13 Jun 2007 17:58:05 -0700
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thank you AJ, but unfortunately, no luck I set the AutoEventWireup to true and also added OnSelectedIndexChanged="State_SelectedIndexChanged" for good measure The post back is happening fine, the Page_Loan event fires off correctly, it just doesn't seem to want to fire off the SelectedIndexChanged event (and yes I am changing the value of the drop down list ;)) Regards, Andy ----- Original Message ----- From: "AJ Murray" <AJ@xxxxxxxxxxx> To: dotnet@xxxxxxxxxxx Sent: Thursday, 14 June 2007 10:24:53 AM (GMT+1000) Australia/Brisbane Subject: RE: [aus-dotnet] ASP.NET 1.1 Control playing up 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. > b����j�h~�^�-��bjwh�w�����x%��S��칻�&ޱ�ݺ{.n�+����������&ޱ�ݲ��r��y�-��b��^n�r��ay隊[h�f����֧�H��ah��,��Z�ǰ��m�+%��i��y隊X�~�-j{$�W(����Ƨj�o,0��Z��"r������e�*h��+y���"r�(�� _________________ 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.
(Click here for more information on the aus-dotnet mailling list)
- Prev by Date: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
- Next by Date: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
- Previous by thread: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
- Next by thread: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
- Index(es):
