Skip to content

How i load html after ajax response ???

zain abbas

Asked Dec 20, 2013, 1:40 AM EST4 answers
Share
LinkedInX
how i load html after ajax response in c#.net Please Tell me ................................................................................................................................................................?

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sandeep Singh Shekhawat
    0
    write code in success part of ajax for html

    $.ajax({

                        cache: false,

                        type: "GET",

                        url: url that returns html",

                        data: { pass your parameters },

    JavaScript
                        success: function (data) {
                            div.html(data);//assign data to div
                        },
                        error: function (xhr, ajaxOptions, thrownError) {
                            alert('Failed to retrieve html content.');
                        }
                    });
    0
  • Sandeep Singh Shekhawat
    0
    It works in javascript/jQuery that call C# class web method using jQuery ajax() method.That C# method retruns html content as a response and these content you can bind in a div control.
    0
  • 0
    Please give me The All C# Code To Execute this i am new pleseee..
    0
  • 1 short reply
    • 0
      Is it Execute in c#.Net...??
      0