I am using a generated webdate choose in an ajax updatepanel. The webdate chooser, scriptmanager and update panel are created in the OnInit event and then added to the page along with some other dropdown boxes.
Everything display's and functions fine but when I choose a date on the webdate chooser I get the following error in the internet explorer statusbar:
Can't eval WebDateChooser_CalendarRenderDay(oControl, ig_fireEvent.arguments[2], og_fireEvent.arguments[3]);
I am using NetAdvantage for .NET 2008 Vol. 2 CLR 2.0 and IE7.
Does anyone has any idea what might cause this error (and how to solve it)?
Hello,
Thanks for writing. I have tried to simulate something similar to what you have locally and here is my code:
protected override void OnInit(EventArgs e) { base.OnInit(e); ScriptManager scriptManager = new ScriptManager(); scriptManager.ID = "ScriptManager1"; Page.Form.Controls.Add(scriptManager); UpdatePanel updatePanel = new UpdatePanel(); updatePanel.ID = "UpdatePanel1"; Page.Form.Controls.Add(updatePanel); WebDateChooser dateChooser = new WebDateChooser(); dateChooser.ID = "WebDateChooser1"; updatePanel.ContentTemplateContainer.Controls.Add(dateChooser); }
Unfortunately (or fortunately, depending on how you view it : ) I was not able to reproduce the error - everything was functioning as expected.
What am I missing? How is your code different from my approach?
I am unable to produce the error with your code at the moment I am trying to find the differences between your and my code.
The only new information I can give you at the moment is the follwoing error in firefox 3, this error happens when I change the date:
Error: [Exception... "'Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: http://localhost:49653/SRK/ScriptResource.axd?d=hdWr5h2wEnO_bK_8insPLMN6YAX6l14CSGKKw0m0EjL0Mb0YoygVoQ2qx261k6XlYk67fjIqc3D1QZiPZ1x7BY-pob-mMlJGnCX5JNkdTkQ1&t=633408463817240560 :: Sys$Net$XMLHttpExecutor$abort :: line 5344" data: no]Source File: http://localhost:49653/SRK/ScriptResource.axd?d=hdWr5h2wEnO_bK_8insPLMN6YAX6l14CSGKKw0m0EjL0Mb0YoygVoQ2qx261k6XlYk67fjIqc3D1QZiPZ1x7BY-pob-mMlJGnCX5JNkdTkQ1&t=633408463817240560Line: 5344
Could be missing IDs - if you programmatically add controls, you need to explicitly set IDs always - if it is not present, javascript errors will occur since there will be no respective javascript client-side object.
The FireFox 3 error message seems weird, it is a mix of internal FireFox error + generic ASP.NET AJAX client-side framework one... I will try to reproduce that and see if I can figure something out of this.
Did you ever find a resolution to this? I am experiencing the same problem.