Posted on: 9/25/2014 3:37:02 AM | Views : 443

Hello everyone, I am trying to redirect to a different page when a button in jquery dialog button is clicked but could not do it. Here is my code:
function createButton(existed) { if (existed == 'false') { var buttons = { "Stay": function () { }, }; } else { var buttons = { "Redirect": function () { var eventToUpdate = { id: currentUpdateEvent.id, }; PageMethods.RedirectToPage(eventToUpdate, redirectResult); }, }; } $('#updatedialog').dialog({ autoOpen: false, width: 500, buttons: buttons, close: function () { $("#updatedialog").dialog("destroy"); } }); } function redirectResult(updateResult) { window.location.href = updateResult; } < ...

Go to the complete details ...