I did not get a response in the ASP.NET WebForms forum so I'm hoping someone in this forum can help me resolve this problem.
I'm using an Accordion control in which I drop two DropDownList controls inside one of the Accordion Pane. When I select an item in the first DropDownList control, it is supposed to trigger an event to re-populate the items of the second DropDownList control
based on the item selected in the First DropDownList control. I set the onSelectedIndexChanged="doSomeProcess()" of the first DropDwonList control. But whenever I select an item on the first DropDownList control, I get this error message "Error: Sys.InvalidOperationException:
Handler was not added through the Sys.UI.DomEvent.addHandler method."
How do I set events for DropDownList controls inside an Accordion Pane? Is there something I'm missing here?
I'm sorry, I'm new to Visual Studio 2010, can you tell me what 's the fiddler? Also, once I select an item on the first DropDownList control the ViewState is lost (all of the choices in the first DropDownList disappears) I assume a postback does occur but
the viewstate is lost and the onSelectedIndexChange procedure is not called for some reason. I put in some Reponse.Write() statement inside the onSelectedIndexChanged procedure and it does not get called at all. I don't know why the onSelecgtedIndexChanged
event procedure is not being callled if a postback occurs. Any ideas why this is happening or how to fix it?
hanglam
0 Points
8 Posts
Events inside an ASP.NET Ajax Accordion control?
Jul 29, 2012 06:55 AM|LINK
Hi,
I did not get a response in the ASP.NET WebForms forum so I'm hoping someone in this forum can help me resolve this problem.
I'm using an Accordion control in which I drop two DropDownList controls inside one of the Accordion Pane. When I select an item in the first DropDownList control, it is supposed to trigger an event to re-populate the items of the second DropDownList control based on the item selected in the First DropDownList control. I set the onSelectedIndexChanged="doSomeProcess()" of the first DropDwonList control. But whenever I select an item on the first DropDownList control, I get this error message "Error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method."
How do I set events for DropDownList controls inside an Accordion Pane? Is there something I'm missing here?
Thanks,
Hang
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Events inside an ASP.NET Ajax Accordion control?
Jul 29, 2012 12:38 PM|LINK
there should be some problem at the server,
please use fiddler and check the request and response whats going
hanglam
0 Points
8 Posts
Re: Events inside an ASP.NET Ajax Accordion control?
Jul 30, 2012 02:36 AM|LINK
I'm sorry, I'm new to Visual Studio 2010, can you tell me what 's the fiddler? Also, once I select an item on the first DropDownList control the ViewState is lost (all of the choices in the first DropDownList disappears) I assume a postback does occur but the viewstate is lost and the onSelectedIndexChange procedure is not called for some reason. I put in some Reponse.Write() statement inside the onSelectedIndexChanged procedure and it does not get called at all. I don't know why the onSelecgtedIndexChanged event procedure is not being callled if a postback occurs. Any ideas why this is happening or how to fix it?
Thanks,
Hang
hanglam
0 Points
8 Posts
Re: Events inside an ASP.NET Ajax Accordion control?
Jul 30, 2012 02:40 AM|LINK
Hi Mudasir.Khan,
Also, I'm getting the error in Visual Studio 2010 when I'm debugging my application. I haven't deployed my application to a server yet.
Thanks,
Hang
chetan.sarod...
All-Star
65729 Points
11133 Posts
Re: Events inside an ASP.NET Ajax Accordion control?
Jul 30, 2012 03:42 AM|LINK
Refer this
http://damianblog.com/2007/08/13/not-added-through-addhandler/
http://forums.asp.net/t/1055781.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.