all posts

Sys.ArgumentUndefinedException Value cannot be undefined. Parameter name id

Published to Blog on 20 Mar 2007

I got the following Javascript error a couple of days ago that I had not seen before:

Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: id

This was from a page that included some form fields, some validators, and was wrapped inside an ASP.NET AJAX UpdatePanel. This had all worked fine before. I had added some other things to the page so I was systematically removing them until I could find the cause of the problem. I eventually turned to a Google Search which led me to the fantastic ASP.NET forums and finally to a blog post from Matt Gibbs that explained the issue and offered a fix.

Apparently there is a problem when using validators inside an update panel that was introduced with ASP.NET AJAX RTM. Matt says that there is a fix coming in a future windows update, but for now he has a link to a set of custom validator controls that you can download, drop the compiled DLL in your bin folder, and add his provided tagMapping section to the web.config. Plenty of more details along with the download can be found in his post.

The fix worked for me. I am still getting a javascript error with IE, a different error, but Firefox works fine. At least the page works now and I can live with it for the time being.


Dan Hounshell
Web geek, nerd, amateur maker. Likes: apis, node, motorcycles, sports, chickens, watches, food, Nashville, Savannah, Cincinnati and family.
Dan Hounshell on Twitter


  • On 3 Jun 2008 "jonx"" said:
    Hello, I also got that problem but at the end it seems that it was not directly related to my validators. Yes, I have validators inside an update panel, but the problem was that I added event handlers to objects the wrong way. For exemple, I used $addHandler(control, 'focus', disableTimer()); instead of $addHandler(control, 'focus', disableTimer); The hint was that this was part of the latest modifications to my web site. Before I added that it was working...
  • On 7 Jan 2009 "Rabi"" said:
    Guys, Thanks a lot for ur help, i was searching for a solution using javascript to validate controls s but it looks better with the dll file that i included in my BIN directory.
  • On 9 Jan 2009 "Irfan Lateef"" said:
    I have AspRadioButtonList in the update panel, and i have been used the property of autopostback true because i want to take event like visible true or false, when i select the radio then i got this error, please help me any one have solution of my problems
  • On 23 Feb 2009 "Johann"" said:
    Thank you! You are a life-saver! For some reason, the one page I had validationcalloutextenders on, just stopped working! I've been trying to figure it out for hours and thankfully found this page. Note to self When in doubt, Google first! Thank you for the help, Dan.
  • On 21 Apr 2009 "Vishal"" said:
    Thanks For Giving Suggetion of this problem.