Type is undefined SP.UI.Dialog error after SP Cumulative Update


  • 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;

                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);


    Wednesday, April 25, 2012 10:29 AM

All replies