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 Thamil   on May 19, 2011   Category: ASP.NET Ajax  |  Views: 8978    |  Points: 5   |  Gold 
  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 Thamil
on May 19 2011 6:16AM
Points : 10
Gold 
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

Latest Posts