Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
183
Can't eval WebdateChooser error
posted

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)?

 

Parents
  • 28464
    posted

    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? 

Reply Children