How to Open the dialog pop up in my Controller code
<p>I have this div in my master page.</p>

<pre><code> &lt;div id="UICancelChanges" title="Are you sure?" style="display: none;"&gt;
            Your changes have not been saved. Are you sure you want to CANCEL ?
        &lt;/div&gt;   
</code></pre>

<p>On click I am just opening Jquery dialog popup window..</p>

<pre><code>CancelEdit = function (accountId) {
            $("#UICancelChanges").dialog({
                resizable: true,
                height: 140,
                width: 500,
                modal: true,
                buttons: {
                    "Yes": function () {
                        $(this).dialog("close");
                    },
                    "No": function () {
                        $(this).dialog("close");
                    }
                }
            });
            return false;
        };
</code></pre>

<p>Is there any way that I can change the Title of this Div popup dynamically? using same code I need to change the title dynamically?</p>

<p>How to open my popup window in the controller code?something like this?</p>

<pre><code>  return new JavaScriptResult() { Script = "alert('SubCategory Successfully Added. Thank You.'); window.location='/ObnCategory/Index';" };
</code></pre>

<p>Instead of alert i need to open the popup window.</p>

<p>Thanks</p>
