| RE: [aus-dotnet] ASP.NET 1.1 Control playing up |
- From: Dave Walker
- Subject: RE: [aus-dotnet] ASP.NET 1.1 Control playing up
- Date: Wed, 13 Jun 2007 18:27:05 -0700
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Also ensure EnableViewstate="true" is set on the control, the user control, and the page. Dave -----Original Message----- From: peter@xxxxxxxxxxx [mailto:peter@xxxxxxxxxxx] On Behalf Of AJ Murray Sent: Thursday, 14 June 2007 1:12 p.m. To: dotnet@xxxxxxxxxxx Subject: RE: [aus-dotnet] ASP.NET 1.1 Control playing up Ok. Try checking to see if the event handler delegate is actually attached as you think it should be. Also maybe try removing all these associated settings and then add them one by one. Sometimes the system gets confused if you have multiple lines trying to do the same thing. Do a rebuild too. 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:49 AM > To: dotnet@xxxxxxxxxxx > Subject: Re: [aus-dotnet] ASP.NET 1.1 Control playing up > > 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. > bj~jnrynyy~jjorɞyr ����������������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)
- 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):
