How to keep the Jquery Dialog open? -


a dialog opened after clicking icon 1.cshtml page. if click link in 1.cshtml page, dialog disappear. how keep open?

1.cshtml code related name-dialog

$('#name-dialog').dialog({     autoopen: false,     width: 500,     resizable: false,     title: 'name',     modal: false,     buttons: {         "close": function () {             $(this).dialog("close");         }     } }); 

if want stay on same page links inside dialog should handled ajax. use ajax.actionlink instead of html.actionlink. way when clicking on anchor, ajax request sent , browser stay on current page. same stands true if have html forms.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -