I had something similar (converting MVC3 ASP to Razor) and in my case my link jquery-1.4.4.min.js
to my main page helped me .
I say "helped" because it is now open work, but it $(this).dialog("close");
does not work.
function ShowPopUp(strDivName)
{
$("div[id$='" + strDivName + "']").dialog(
{
title: "blah blah blah",
width: 600,
modal: true,
resizable: true,
closeOnEscape: false,
buttons:
{
"Save": function () { SaveThis(); $(this).dialog("close"); },
"Cancel": function () { $(this).dialog("close"); }
}
}
);
$("div[id$='" + strDivName + "']").dialog("open");
}
source
share