I am still a bit of a fresher with MVC post backs from the ajax call but I will show what I have (laymenised) and im hoping someone can point me in the direction of getting the response open in a new browser tab.
I am passing my MVC Controller and Action in the sourceURL below:
$j.ajax({
url: sourceURL,
cache: false,
type: 'get',
success: function (data, statusText, jqXHR) {
// Do stuff here
}
});
which takes me to my Controller Action:
public ActionResult Edit(bool isForPartial = false, int actionId = 0, int objectId = 0, int parentObjectId = 0, string parentObjectType = "", bool fullView = false)
{
// Do Stuff Here aswell
return RedirectToAction(actionName, controllerName, new {params...})
}
The Action on the return is called and a Partial View is loaded. I, however, would like this page to be opened on a new browser tab.
I am hoping there is something simple I can do from the ajax call to make this happen but I know life isn't generally that easy so any help on this is appreciated!