You must Sign In to post a response.
  • Category: JQuery

    Jquery ajax call issue.

    Hi Experts,

    This is my function to load data into jquery datatable from external file . its loading the data if alert is used other wise data records not loading.

    function registerComposeButtonEvent(){
    /* just for this demo */
    $('#composeButton').click(function (e) {

    var tabId = "compose"+composeCount;//this is id on tab content div where the
    composeCount = composeCount + 1;//increment compose count

    $('#topTabs').append('<li><a href="#'+tabId+'"><button class="close closeTab clsBtn" type="button" ><i class="fa fa-times-circle"></i></button><i class="flaticon-social-network15"></i>Manage User</a></li>');
    $('#topTabs-content').append('<div class="tab-pane" id="'+tabId+'"></div>');

  • #763922

    Did you using external Jquery file means your control property must be this

    <asp:Label ID="lbl1" ClientIDMode="Predictable" runat="server"></asp:Label>

    then call using control.ClientID in your client side script then try it will work

    Name : Dotnet Developer-2015
    Email Id

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #763931
    Hai Ram,
    Did you check the function callusergrid();. There might be the issue for this function to load the GridView. Instead try the same code inside this function and check using debugger.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #763944

    The issue might not be alert, my suggestion is execute the ajax call in browser and check if it throws any errors.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

Sign In to post your comments