I have a MVC 2 application and in the same, I want a popup dialog box to be displayed with content of a .ascx user control page on a click of hyperlink in user control which is a part of a page...
this is how i have it now.
in the main page i have :
<%Html.RenderPartial(
$(
dialogButtons[Labels.Common_OK] =
Dialog.open({
id:
title: Labels.EngagementMatch_GFISEngagementMatchTitle,
height: 750,
width: 900,
buttons: dialogButtons
});
'#AddOrRemEngNumbers').click(function(e) {var $formContainerDiv = $("#GFISAddOrRemEngagement");var $dialog = $('#AddRemEngagement');var dialogButtons = new Object();function() { $("#AddRemEngagement").dialog('close'); };'AddRemEngagement',// dialog open end$(
});
'#AddRemEngagement').append($.get("/Engagement"));// click function end...
...
...
...
...
<%
=string.Concat("", Labels.EngInfo_AddOrRemoveOtherGFISNumbers.EncodeHtmlAttribute(), "")%> <%--code modified for popup--%>...
...
...
...
...
...
...
...
<
div id="GFISAddOrRemEngagement" ><% Html.RenderPartial(
"~/Views/Engagement/EngagementData", Model); %>div>The dialog box comes up, but the Data of the DIV is not gettin populated.. please help.. very urgent ! Thanks in advance !
"EngInfo", Model); %>div>
in this partial view I have :
Replies
Know the answer? Post it — somebody with the same question will find it here.