Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have code like this for a popup from link in MVC4:


XML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="~/Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="~/Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

<h2>popup</h2>

@Html.ActionLink("open", "popup", new { @class = "openDialog" })

<div id="dialog-Box" style="background-color: white; border: thin solid #0101DF;width: 100px; height: 100px">
    <p>hai</p>
</div>

<script type="text/jscript">
$('#dialog-Box').dialog({
        autoOpen: false,
        height: 500,
        width: 700,
        resizable: false,
        modal: true
    });

    $('.openDialog').click(function () {
        var theURL = $(this).attr('href');
        $('#dialog-Box').load(theURL, function () {
            $(this).dialog('open');
        });
    });

</script>


but the popup is not working


please help me in doing this i am new to MVC
Posted
Comments
Jameel VM 9-Jul-13 9:55am    
did you check the the error in console window of chrome or mozilla?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900