Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Using AJAX in ASP.NET

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 209
    Comment on it

    Ajax Calls in ASP.NET

    For removing postback in web page you use

    1 Update Panels

    • Update Panels are used when there is partial postback of page can happen.

    2 Ajax Calls

    • If you want to minimize postbacks to the extent Ajax calls are used.
    • For implementing that we need jquery libraries

    jquery min.js

    and we will create our jscript file inside that we will make ajax call to the page and return all the HTML from it and append the result from it to any container of the calling page.
    Ex :

    $("button").click(function(){
        $.ajax({
            url: "Insert.aspx",    // Name of the called page where ajax call goes
            success: function(result){
            $("#div1").html(result);     // bind result to the calling page
        }});
    });

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: