Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

call action from another project in same solution

$
0
0

Hello,

I have two project in one solution, I have an action in first project 

    [Route("[controller]/[action]")]
public class HomeController : Controller
{
[HttpGet] public string Index() { return "Hi"; }
}

I tried this in second project , but its not working.

Note: By the way, I did dependecy

$.ajax({
                    url: 'https://localhost:xxx/Home/Index',
                    type: 'get',
                    dataType: 'json',
                    contentType: 'application/json;charset=utf-8',
                    success: function (data) {
                        alert('Success: ' + data);
                    },
                    error: function (error) {
                        alert(error.statusText);
                    }
                });


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>