Call (Consume) ASP.Net Web API using jQuery AJAX

essitco.dotnet
 
on Mar 23, 2021 03:23 AM
859 Views

I have call a web api by using ajax and get data but i have face issue.

how to display data.

Please send me demo format.

<div class="pricing-main">
    <div class="container">
        <div class="row">
            <div class="col-md-4">
                <div class="back-color">
                    <div class="plan">
                        <div class="topclr">
                            <h2> Basic</h2> -- here i have display description
                            <h3> Monthly $299</h3> -- here Plan
                            <p>Annualy $2990</p>
                        </div>
                        <ul id="oran">
                            <button class="choose" type="button">Choose Plan</button>
                        </ul>
                    </div>
                </div>
            </div>

 

$(document).ready(function () {
    $.ajax({
    type: "GET",
    url: "/api/Product/GetProducts",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (response) {

    }
});

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Mar 23, 2021 03:25 AM