This is if your view uses Razor
@Url.Action(MVC.Home.Index())
So your script will be
<script type="text/javascript"> $(document).ready(function () { $dialog = $('#dialog'); $dialog.dialog({ autoOpen: false, buttons: {}, open: function (event, ui) { $(this).load("@Url.Action(MVC.Home.Index())"); } }); }); </script>
source share