Malik Danish Habib

Malik Danish Habib

  • 1.5k
  • 180
  • 159.2k

How to call a service using ajax

Jul 17 2024 11:07 AM

Dear All I would like to ask I have a scenior where I need to call a service using ajax which will open my windows service interface I have done it using javascript ajax but the issue is 

$.Ajax({

uri:my service URL ;

type:POST 

 

})

my ajax code works fine it call the serive and open up the windows service interface as well , The issue is I would like to post this data as well but for posting data I need to provide URL (specifiying the controller and action name ) but how I will do that as I am already using URI attribute to call windows service so how to call another URL to post this service data in controller  means two URL 


Answers (3)