locked
AjaxModelPopup is not poped up while using in gridview error Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. RRS feed

  • Question

  • User-1075244417 posted

    Summary of the problem I am having:

    I am using Ajaxmodelpopup for editing gridview row data. Here i mentioned code i am getting errors in script

    Error I am receiving:

    Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.

    My code:

    <use the editor's "Insert code sample" functionality to insert a minimal amount of code which reproduces the problem>

    <%@ Page Title="" Language="C#" MasterPageFile="~/BO.Master" AutoEventWireup="true" CodeBehind="Prep_Panel.aspx.cs" Inherits="OfficePhDApp.Prep_Panel" %>

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
    .ChkBoxClass input {
    width: 25px;
    height: 20px;
    }
    </style>

    <script type="text/javascript">
    $(document).ready(function () {
    $("#ContentPlaceHolder1_gvExaminerList").prepend($("<thead></thead>").
    append($("#ContentPlaceHolder1_gvExaminerList").find("tr:first"))).DataTable({
    "language": {
    "emptyTable": "Examiner data is empty! Please add...",
    "sSearch": "Search:"
    },
    "lengthMenu": [[3, 5, 10, 25, 50, -1], [3, 5, 10, 25, 50, "All"]],
    "aaSorting": [],
    dom: 'Bfrtip',
    buttons: [
    'pageLength', 'copy', 'csv', 'excel', 'print'
    ],
    "aoColumnDefs": [{
    "targets": [7],
    "bSortable": false,
    }]
    });
    });
    </script>
    <script type="text/javascript">
    $(document).ready(function () {
    $("#ContentPlaceHolder1_gvProvExaminerList").prepend($("<thead></thead>").
    append($("#ContentPlaceHolder1_gvProvExaminerList").find("tr:first"))).DataTable({
    "language": {
    "emptyTable": "None of examiners allotted Yet!...",
    "sSearch": "Search:"
    },
    "lengthMenu": [[12, 25, 50, -1], [12, 25, 50, "All"]],
    "aaSorting": [],
    dom: 'Bfrtip',
    buttons: [
    'pageLength', 'copy', 'csv', 'excel', 'print'
    ],
    "aoColumnDefs": [{
    "targets": [8],
    "bSortable": false,
    }]
    });
    });
    </script>

    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
    <div class="container-fluid">
    <div class="row mb-2">
    <div class="col-sm-6">
    <h1 class="m-0 text-dark">12 Examiner Panel</h1>
    </div>
    <!-- /.col -->
    <div class="col-sm-6">
    <ol class="breadcrumb float-sm-right">
    <li class="breadcrumb-item"><a href="#">Home</a></li>
    <li class="breadcrumb-item active">12 Panel Request</li>
    </ol>
    </div>
    <!-- /.col -->
    </div>
    <!-- /.row -->
    </div>
    <!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
    <div class="container-fluid">
    <div class="row">

    <table class="table table-borderless table-active" style="background-color: white">
    <tr style="height: 0px">
    <td colspan="2" style="height: 1px"></td>
    <td colspan="2" style="height: 1px">
    <h6 class="text-bold text-dark mt-3">Student Name:<strong><span class="text-muted">
    <asp:Label ID="lblStdName" runat="server" Text=""></asp:Label>(<asp:Label ID="lblReceiptNo" runat="server" Text=""></asp:Label>)</span></strong> </h6>
    </td>

    <td colspan="2" style="height: 1px">
    <h6 class="text-bold text-dark mt-3">Supervisor Name:<span class="text-muted">
    <asp:Label ID="lblSupName" runat="server" Text=""></asp:Label></span> </h6>
    </td>
    <td colspan="2" style="height: 1px">
    <h6 class="text-bold text-dark mt-3">Subject Name:<span class="text-muted">
    <asp:Label ID="lblSubjectName" runat="server" Text=""></asp:Label></span> </h6>
    </td>
    </tr>
    <tr style="height: 0px">
    <td colspan="2" style="height: 1px">
    <h6 class="text-bold text-dark mt-3">Title: </h6>
    </td>
    <td colspan="6" style="height: 2px"><span class="text-muted">
    <asp:Label ID="lblThesisTitle" runat="server" Text=""></asp:Label></span></td>
    </tr>
    </table>
    <div class="col-md-12">
    <div class="card card-cyan">
    <div class="card-header">
    <h3 class="card-title text-bold" style="color: white">List of Adjudicators Data</h3>
    <h5 class="card-title">
    <asp:Label ID="lblStatusHead" runat="server" Text="" Visible="true"></asp:Label>
    </h5>
    <div class="card-tools">
    <div class="btn-group">
    <button type="button" class="btn btn-tool text-bold" data-toggle="modal" data-target="#myModal">
    <b>Add New Adjudicator</b> &nbsp; <i class="fas fa fa-user-plus"></i>
    </button>
    <%--<div class="dropdown-menu dropdown-menu-right" role="menu">
    <a href="#" class="dropdown-item">Edit Details</a>
    </div>--%>
    </div>
    <button type="button" class="btn btn-tool" data-card-widget="collapse">
    <i class="fas fa-minus"></i>
    </button>
    </div>
    </div>
    <!-- /.card-header -->
    <div class="card-body">
    <div class="row">
    <div class="col-md-12">
    <asp:GridView ID="gvExaminerList" CssClass="table table-hover table-active table-bordered table-responsive" runat="server" AutoGenerateColumns="false" DataKeyNames="ID" OnRowDataBound="gvExaminerList_RowDataBound">
    <Columns>
    <asp:TemplateField>
    <HeaderTemplate>
    <header>#</header>
    </HeaderTemplate>
    <ItemTemplate>
    <asp:CheckBox ID="chkbox" ItemStyle-Width="2%" runat="server" Enabled="true" CssClass="ChkBoxClass" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Left" />
    </ItemTemplate>
    </asp:TemplateField>
    <asp:BoundField DataField="ID" HeaderText="ID" ItemStyle-ForeColor="#C0C0C0" />
    <asp:BoundField DataField="FacultyName" ItemStyle-Width="15%" HeaderText="Faculty Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="MobileNo" HeaderText="MobileNo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="EmailId" HeaderText="Email ID" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="CollName" HeaderText="College/Institute Address" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="UniversityName" HeaderText="University/Institute Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="StateCode" HeaderText="State Address" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="StatusId" HeaderText="#" ItemStyle-HorizontalAlign="Justify" />
    </Columns>
    </asp:GridView>
    </div>
    </div>
    <!-- /.row -->
    </div>
    <!-- ./card-body -->
    <div class="card-footer">
    <div class="row">
    <div class="col-12">
    <center> <asp:Button ID="btnSelectedFaculty" CssClass="btn btn-outline-info offset-1" runat="server" Text="Provisionally selected for 12 Panel" OnClick="btnSelectedFaculty_Click" /></center>
    </div>
    </div>
    <!-- /.row -->
    </div>
    <!-- /.card-footer -->
    </div>
    </div>
    </div>
    <div class="row">
    <div class="col-md-12">
    <div class="card card-olive">
    <div class="card-header">
    <h3 class="card-title"><strong style="color: white">Preview of Provisionally Selected 12 Panel Examiners List</strong></h3>

    <div class="card-tools">
    <button type="button" class="btn btn-tool" data-card-widget="collapse">
    <i class="fas fa-minus"></i>
    </button>
    </div>
    </div>
    <!-- /.card-header -->
    <div class="card-body">
    <div class="row">
    <div class="col-md-12">

    <asp:GridView ID="gvProvExaminerList" CssClass="table table-hover table-active table-bordered table-responsive" runat="server" AutoGenerateColumns="false" DataKeyNames="ID" OnRowDataBound="gvProvExaminerList_RowDataBound">
    <Columns>
    <asp:TemplateField HeaderText="#" ItemStyle-Width="1px" ItemStyle-ForeColor="Red">
    <ItemTemplate>
    <asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" CssClass="text-bold text-danger" />
    </ItemTemplate>
    </asp:TemplateField>
    <asp:BoundField DataField="ID" HeaderText="FID" ItemStyle-ForeColor="#C0C0C0" />
    <asp:BoundField DataField="FacultyName" ItemStyle-Width="15%" HeaderText="Faculty Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="MobileNo" HeaderText="MobileNo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="EmailId" HeaderText="Email ID" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="CollName" HeaderText="College/Institute Address" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="UniversityName" HeaderText="University/Institute Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:BoundField DataField="StateCode" HeaderText="State Address" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
    <asp:TemplateField HeaderText="?" ItemStyle-Width="1px">
    <ItemTemplate>
    <asp:LinkButton ID="Facultydelete" runat="server" OnClick="Facultydelete_Click"><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
    </ItemTemplate>
    </asp:TemplateField>
    <%-- <asp:TemplateField HeaderText="?" ItemStyle-Width="1px">
    <ItemTemplate>
    <asp:LinkButton ID="FacultyEdit" runat="server" OnClick="FacultyEdit_Click"><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton>

    </ItemTemplate>
    </asp:TemplateField>--%>

    <asp:CommandField SelectText="Edit" ShowSelectButton="True"></asp:CommandField>
    </Columns>
    </asp:GridView>


    </div>
    <div class="col-md-12">
    <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup"
    CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="500px" Width="900px" Style="display: none">

    Test model 
    </asp:Panel>
    </div>
    <!-- /.col -->

    <!-- /.col -->
    </div>
    <!-- /.row -->
    </div>
    <!-- ./card-body -->
    <div class="card-footer">
    <div class="row">
    <div class="col-12">
    <div class="col-6 offset-5">
    <div class="icheck-primary">

    <asp:CheckBox ID="cbFinalAgree" runat="server" CssClass="ChkBoxClass" />
    <label for="agreeTerms" style="color: #6c757d!important">
    I agree to the <a href="#" data-toggle="modal" data-target="#termsModal">terms</a>

    </label>

    </div>

    </div>

    <center> <label class="text-center" style="color:#e83e8c!important;">Once you submit final examiners <br/>You can not resubmit it.</label></center>
    <!-- /.col -->
    </div>
    <!-- /.col -->
    </div>
    <br />
    <div class="row">
    <div class="col-12">
    <div class="col-2 offset-5">
    <asp:Button ID="btnFinal12Panel" runat="server" OnClick="btnFinal12Panel_Click" Text="Submit Final 12 Panel" class="btn btn-outline-success" />
    </div>
    </div>
    </div>
    <!-- /.row -->
    </div>
    <!-- /.card-footer -->
    </div>
    <!-- /.card -->
    </div>
    <!-- /.col -->
    </div>
    <div class="modal" id="myModal">
    <div class="modal-dialog">
    <div class="modal-content">

    <!-- Modal Header -->
    <div class="modal-header">
    <h4 class="modal-title">Add new faculty details</h4>
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    </div>

    <!-- Modal body -->
    <div class="modal-body">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div class="row">
    <div class="col-md-12">
    <h3>
    <asp:Label ID="lblStatus" runat="server" Text="" Visible="true"></asp:Label></h3>
    <div class="row">

    <div class="col-sm-4">
    <div class="form-group">
    <label>Title</label>
    <asp:DropDownList ID="ddlTitle" runat="server" CssClass="form-control input-sm">
    <asp:ListItem></asp:ListItem>
    <asp:ListItem Value="Prof.">Prof.</asp:ListItem>
    <asp:ListItem Value="Dr.">Dr.</asp:ListItem>
    </asp:DropDownList>
    </div>
    </div>
    <div class="col-sm-8">
    <div class="form-group">
    <label>Name of Examiner</label>
    <asp:TextBox ID="txtFacultyName" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>

    </div>
    <div class="col-md-4">
    <div class="form-group">
    <label for="inputName" class="control-label">Mobile Number</label>
    <asp:TextBox ID="txtMobile" MaxLength="10" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>
    <div class="col-md-8">
    <div class="form-group">
    <label for="inputName" class="control-label">Email ID</label>
    <asp:TextBox ID="txtEmail" runat="server" TextMode="Email" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>
    <div class="col-md-4">
    <div class="form-group">
    <label for="inputName" class="control-label">Mobile / Phone</label>
    <asp:TextBox ID="txtMobile1" MaxLength="15" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>
    <div class="col-md-8">
    <div class="form-group">
    <label for="inputName" class="control-label">Email ID 2</label>
    <asp:TextBox ID="txtEmail1" runat="server" TextMode="Email" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>

    </div>

    <div class="row">
    <div class="col-md-12">
    <div class="form-group">
    <label for="inputName" class="control-label">Department / Division Name </label>
    <asp:TextBox ID="txtUnivAddress" TextMode="MultiLine" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>
    <div class="col-sm-12">
    <div class="form-group">
    <label>College / Institute Name</label>
    <asp:TextBox ID="txtCollName" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>
    <div class="col-sm-12">
    <div class="form-group">
    <label>University / Institute Name</label>
    <asp:TextBox ID="txtUniversity" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    <%--<asp:DropDownList ID="ddlUnivName" runat="server" CssClass="form-control input-sm"></asp:DropDownList>--%>
    </div>
    </div>

    <div class="col-sm-9">
    <div class="form-group">
    <label>State</label>
    <asp:DropDownList ID="ddlUnivState" runat="server" CssClass="form-control input-sm">
    <asp:ListItem></asp:ListItem>
    <asp:ListItem>Telangana</asp:ListItem>
    <asp:ListItem>Andhra Pradesh</asp:ListItem>
    <asp:ListItem>Arunachal Pradesh</asp:ListItem>
    <asp:ListItem>Assam</asp:ListItem>
    <asp:ListItem>Bihar</asp:ListItem>
    <asp:ListItem>Chhattisgarh</asp:ListItem>
    <asp:ListItem>Goa</asp:ListItem>
    <asp:ListItem>Gujarat</asp:ListItem>
    <asp:ListItem>Haryana</asp:ListItem>
    <asp:ListItem>Himachal Pradesh</asp:ListItem>
    <asp:ListItem>Jharkhand</asp:ListItem>
    <asp:ListItem>Karnataka</asp:ListItem>
    <asp:ListItem>Kerala</asp:ListItem>
    <asp:ListItem>Madhya Pradesh</asp:ListItem>
    <asp:ListItem>Maharashtra</asp:ListItem>
    <asp:ListItem>Manipur</asp:ListItem>
    <asp:ListItem>Meghalaya</asp:ListItem>
    <asp:ListItem>Mizoram</asp:ListItem>
    <asp:ListItem>Nagaland</asp:ListItem>
    <asp:ListItem>Odisha</asp:ListItem>
    <asp:ListItem>Punjab</asp:ListItem>
    <asp:ListItem>Rajasthan</asp:ListItem>
    <asp:ListItem>Sikkim</asp:ListItem>
    <asp:ListItem>Tamil Nadu</asp:ListItem>
    <asp:ListItem>Tripura</asp:ListItem>
    <asp:ListItem>Uttar Pradesh</asp:ListItem>
    <asp:ListItem>Uttarakhand</asp:ListItem>
    <asp:ListItem>West Bengal</asp:ListItem>
    <asp:ListItem>Andaman and Nicobar Islands</asp:ListItem>
    <asp:ListItem>Chandigarh</asp:ListItem>
    <asp:ListItem>Dadra and Nagar Haveli</asp:ListItem>
    <asp:ListItem>Daman and Diu</asp:ListItem>
    <asp:ListItem>Delhi</asp:ListItem>
    <asp:ListItem>Jammu and Kashmir</asp:ListItem>
    <asp:ListItem>Ladakh</asp:ListItem>
    <asp:ListItem>Lakshadweep</asp:ListItem>
    <asp:ListItem>Puducherry</asp:ListItem>


    </asp:DropDownList>
    </div>
    </div>

    <div class="col-md-3">
    <div class="form-group">
    <label for="inputName" class="control-label">Pincode</label>
    <asp:TextBox ID="txtPincode" MaxLength="6" runat="server" CssClass="form-control input-sm"></asp:TextBox>
    </div>
    </div>

    </div>

    </div>

    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    </div>

    <!-- Modal footer -->
    <div class="modal-footer">
    <asp:Button ID="btnAddFaculty" runat="server" OnClick="btnAddFaculty_Click" Text="Submit" class="btn btn-danger" />


    </div>

    </div>
    </div>
    </div>

    </div>
    </div>
    </div>

    </div>
    <!--/. container-fluid -->
    </section>
    <!-- /.content -->
    </div>
    </asp:Content>

    Code behind

    protected void FacultyEdit_Click(object sender, EventArgs e)
    {
    LinkButton lnkbtnEdit = sender as LinkButton;
    GridViewRow gvrow = (GridViewRow)lnkbtnEdit.NamingContainer;
    this.ModalPopupExtender1.Show();


    }

    protected void gvProvExaminerList_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
    (e.Row.FindControl("lblRowNumber") as Label).Text = (e.Row.RowIndex + 1).ToString();
    LinkButton l = (LinkButton)e.Row.FindControl("Facultydelete");
    l.Attributes.Add("onclick", "javascript:return " +
    "confirm('Are you sure! You want to delete the record of " +
    DataBinder.Eval(e.Row.DataItem, "FacultyName") + "')");
    }

    }

    Monday, January 20, 2020 6:53 AM

All replies

  • User288213138 posted

    Hi arunsilivery,

    Summary of the problem I am having:

    I am using Ajaxmodelpopup for editing gridview row data. Here i mentioned code i am getting errors in script

    Error I am receiving:

    Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.

    I tested your code, but I did not encounter this error.

    Can you tell me which line of code did you go error with?

    Best regards,

    Sam

    Monday, January 20, 2020 9:14 AM
  • User-1075244417 posted

    Hello Sam,

    When i click on <asp:LinkButton ID="FacultyEdit" runat="server" OnClick="FacultyEdit_Click"><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton> from second grid ajaxmodelpopup is not fired and it is showing this error.

    Uncaught Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
    Parameter name: element
    at Function.Error$create [as create] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:237:15)
    at Function.Error$argumentNull [as argumentNull] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:279:21)
    at Function$_validateParameterType [as _validateParameterType] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:171:23)
    at Function$_validateParameter [as _validateParameter] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:130:18)
    at Function$_validateParams [as _validateParams] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:84:22)
    at Sys$UI$DomEvent$addHandler (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:4033:22)
    at Sys.Extended.UI.ModalPopupBehavior.initialize (http://localhost:53678/ScriptResource.axd?d=qTnPOILsJCPbmGgsgyJ0e4SH2xJzzx7KO_l1qLwURxY0rE1JxWN6qk9VKm42WlGJMZBxZUkkHFrhdjC_MMRjkcv8W0s-1-3RLI4JZ-VG1a8dIhOsg2OIJVZQKI2BDjT40&t=ffffffffb56adc1f:93:13)
    at Sys.Extended.UI.ModalPopupBehavior.Sys$Component$endUpdate [as endUpdate] (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:3685:38)
    at Sys$Component$create (http://localhost:53678/ScriptResource.axd?d=D9drwtSJ4hBA6O8UhT6CQvz7_6C-mDHhqcRgNruf-UZR-A_xjP34seCIrLjz3DJ2IaQKFHNOAUsAmFhpbhzuLWF2IlBVFNLj65PgOx2fVFIUzUIYNu6sugVjdch9ZOhwR9oLo-aA5gppknUlyerLU3O4ARXaLwSUkJgN0-4Wnjg1&t=ffffffff9a9577e8:3834:23)
    at Array.<anonymous> (http://localhost:53678/BOS_Prep_12Panel:789:5)

    Monday, January 20, 2020 9:27 AM
  • User288213138 posted

    Hi arunsilivery,

    When i click on <asp:LinkButton ID="FacultyEdit" runat="server" OnClick="FacultyEdit_Click"><i class="fa fa-edit" aria-hidden="true"></i></asp:LinkButton> from second grid ajaxmodelpopup is not fired and it is showing this error.

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

    Sorry, I still can’t reproduce your problem. 

    I suggest you try debugging your code by setting breakpoints to see which line of code is wrong.

    Here are similar questions you can use as a reference: https://stackoverflow.com/questions/4792923/asp-net-can-not-debug-this-problem-sys-argumentnullexception-value-cannot-be

    If you can't solve the problem, please post your complete code.

    Best regards,

    Sam

    Wednesday, January 22, 2020 7:07 AM