0

I want to add modal when button click with ajax request

public static string CreateCompanyPartial(string path)
{
    using (WebClient client = new WebClient())
    {
        client.Encoding = Encoding.UTF8;
        string url = path + "/CompanyProfils/CompanyCreateModalPartial";
        string content = client.DownloadString(url);
        return content;
    }
}

This is my request

$.ajax({
    type: "Get",
    data: {
        path: common
    },
    url: commonapi + "/api/CompanyProfilsApi/CreateCompanyPartial/",
    success: function (data) {
        console.log(data)
        $('#companyModal').append(data)
    }
})

I'm trying append page, request is okay and getting data but not append all of them. Have a limit append function? Please for help.

image

Peter B
  • 22,460
  • 5
  • 32
  • 69
Bilal Tüylü
  • 19
  • 1
  • 9

0 Answers0