Schleid Alex

Schleid Alex

  • NA
  • 361
  • 43.3k

How to open page with jquery

Apr 21 2020 1:37 AM
Hi,
 
I have this script
 
@*$.ajax({
type: 'GET',
data: { id : StoreID},
url: '@Url.Action("Create")',
contentType: 'apllication/html; charset=utf-8',
success: function () {
//window.open(@Url.Action("Create", "Storebranch") )
}
})*
 now I would like to know what to put on the success part to open the page.
I have use windows.location.href but it  is not working as expected as I have a double call to the controller which nullify my parameter on the second call.
 
P.S. Moderator if you have to delete my script please let me know the right way to post it, excuse me if I am doing it the wrong way.
 

Answers (4)