1 Replies - 3440 Views - Last Post: 28 April 2012 - 07:19 AM Rate Topic: -----

#1 ankit9  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 18-February 11

Value cannot be null. Parameter name: control ERROR for ConfirmButtonE

Posted 28 April 2012 - 02:02 AM

hi!! i am using a ConfirmButtonExtender and ModalPopupExtender for a remove button... but i am getting an error....

below is the code...

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>


<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="remove_btn" Enabled="true" DisplayModalPopupID="ModalPopupExtender2">
</asp:ConfirmButtonExtender>

     <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" behaviorID="remove_btn" TargetControlID="remove_btn"
     OkControlID="btn_ok" CancelControlID="btn_cancel" backgroundcssclass="ModalPopupBG">
     </asp:ModalPopupExtender>


ERROR...
Server Error in '/' Application.
Value cannot be null.
Parameter name: control

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: control

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: control]
   System.Web.UI.ClientScriptManager.GetPostBackEventReference(Control control, String argument, Boolean forUrl, Boolean registerForEventValidation) +2132483
   AjaxControlToolkit.ConfirmButtonExtender.RegisterDisplayModalPopup() +606
   AjaxControlToolkit.ConfirmButtonExtender.onload(EventArgs e) +76
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207



Can Someone Please help Me with issue....

Thank's in advace... :)

This post has been edited by Dormilich: 28 April 2012 - 02:17 AM
Reason for edit:: please use [CODE] [/CODE] tags when posting code


Is This A Good Question/Topic? 0
  • +

Replies To: Value cannot be null. Parameter name: control ERROR for ConfirmButtonE

#2 Atli  Icon User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4238
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: Value cannot be null. Parameter name: control ERROR for ConfirmButtonE

Posted 28 April 2012 - 07:19 AM

** Moved to the ASP.NET forum **
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1