Type is undefined SP.UI.Dialog error after SP Cumulative Update
-
Wednesday, April 25, 2012 10:29 AM
i created web part inside modal dialog window and when i click the button i close the modal.
Worked 100% OK but after i installed "Cumulative Update" i am getting "Type is undefined" JS error...
any help will be appriciated
my code:
void btnSave_Click(object sender, EventArgs e)
{
ClientScriptManager cs = Page.ClientScript;
SaveInShaerPointDraftList();
string key7 = "SPJSENUMS";
string location7 = @"/_layouts/SP.UI.Dialog.js";
if (!this.Page.ClientScript.IsClientScriptIncludeRegistered(key7))
this.Page.ClientScript.RegisterClientScriptInclude(key7, location7);
cs.RegisterClientScriptBlock(this.GetType(), key6, "$(function(){SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK,'bla bla');});", true);
}
All Replies
-
Thursday, April 26, 2012 7:30 AMModerator
-
Wednesday, May 02, 2012 11:34 PMAfter installing which Cumulative Update? Did you started seeing the issue.
-
Thursday, May 03, 2012 8:50 AM
-
Thursday, May 03, 2012 11:53 PM
Please try after installing the latest April 2012 CU:

