Home > Forum > ASP.NET Ajax > Error : Sys.ArgumentNullException: Value cannot be null Parameter name: element

Error : Sys.ArgumentNullException: Value cannot be null Parameter name: element

by Thamilselvanj   on May 19, 2011   Category: ASP.NET Ajax  |  Views: 819    |  Points: 5   |  Silver 
  Reply
I’m getting this JavaScript error when the page load

"Sys.ArgumentNullException: Value cannot be null Parameter name: element"

and the page containing update panel as well as ModalPopupExtender.

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :Error : Sys.ArgumentNullException: Value cannot be null Parameter name: element   
by Thamilselvanj
on May 19 2011 6:16AM
Points : 10
Silver 
Reason for this error is that wrongly I have mentioned the ids of Cancelcontrolid and Okcontrolid. Finally I have set correct Ids of Cancelcontrolid and Okcontrolid attributes.

<cc1:modalpopupextender id="mpCancelConfirm" runat="server" targetcontrolid="btnCancelOk"
popupcontrolid="panlCacncel"
backgroundcssclass="modalBackground"
dropshadow="false"
cancelcontrolid="btnCancel"
okcontrolid="btnOk" />
  Recent Post
* Log in, Log out... (0) by Jeeva on 15/02/2012
* Unable to start program and showing Element not found error message in Microsoft Visual Studio 2008 (1) by Thamilselvanj on 19/12/2011
* Error : The request channel timed out while waiting for a reply after.. in WCF service. (1) by Thamilselvanj on 08/06/2011
* How to Split the string in sql server? (0) by Spidy on 19/05/2011
* Error : Sys.ArgumentNullException: Value cannot be null Parameter name: element (1) by Thamilselvanj on 19/05/2011