i am trying to open a new browser instance popup to show the contents of a file so not staying in the same page?
$(document).ready(function (event) {
$.ajax({
type: 'POST',
url: "/Home/Index"
});
})
public ActionResult Index()
{
return File(@"C:\TextFile1.txt", "text/plain");
}
What about without ajax?
If you require ajax, because you need to POST data