Sys.ArgumentUndefinedException with calendarextender

Last post 02-13-2008 5:13 PM by heretic-monkey. 17 replies.

Sort Posts:

  • Re: Sys.ArgumentUndefinedException with calendarextender

    09-01-2007, 8:08 PM

     It's September 1, 2007 and this error is still occurring for me.  I downloaded and reinstalled both the ASP.NET AJAX extensions and the toolkit this week with the same results so I'm not sure it has been fixed.

    dw
  • Re: Sys.ArgumentUndefinedException with calendarextender

    01-14-2008, 7:16 AM
    • Loading...
    • Deepak Rai
    • Joined on 07-23-2007, 1:02 PM
    • Pune
    • Posts 41

    Hi

    I too updated AjaxControlToolkit but it doesn't work for me. It still displaying same error Sys.ArgumentUndefinedException. My date format is dd-MMM-yyyy.

    Have u got any solution?

    Please dont forget to click "Mark as Answer" on the post that helped you.

    Deepak Rai
    MCP, MCSD
  • Re: Sys.ArgumentUndefinedException with calendarextender

    02-13-2008, 5:13 PM

    Not sure if this will work in all situations, but I had the error and fixed it this way:

    In the page that uses the Date.parseLocale funciton (or the CalendarExtender, or whatever), in the Page_PreRender call, add a startup script (Page.ClientScript.RegisterStartupScript(Type type, string key, string script, bool addScriptTags) with the following as "script" and true as addScriptTags:

     

    Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value) {
        if (!this._upperAbbrMonths) {
            this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);
        }
        return Array.indexOf(this._upperAbbrMonths, this._toUpper(value));
    };

     

    Again, this works in my case, your mileage may vary...

Page 2 of 2 (18 items) < Previous 1 2
Microsoft Communities
Page view counter