I am not sure if the title of my question is ok. I tried to google it but there is not any topic about it. I am using VS 2017 with MVC project, i have faced two ways to call view (html):
1st way-Using razor methods which is embedded on html views directly
@Html.ActionLink
,@Url.Action
, etc
2nd-Using Ajax from a JS file
$.ajax({
url: "/Controller/Action",
type: 'GET',
cache: false,
success: function (data) {
$('#Container').html(data);
}
});
I would like to know what the difference is