I need to display a View obtained from ASP.NET controller method.How to do that?
[HttpGet]
public ActionResult B(string Email, string Password)
{
//some code
return View();
}
js
function A() {
$.get("/Home/B", {
"Email": document.getElementById("Email").value,
"Password": document.getElementById("Pass").value
},
function (data) {
// ......
});
What to write in function (data)
to receive and display a returned View()
?