Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

SharePoint Designer 2010 Javascript errors Sys.InvalidOperationException

Message: Sys.InvalidOperationException: Type SP.UI.DialogResult has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded.

Open in new window

My workflow: I tried to open a dialog by clicking a button so I used SP.UI.ModalDialog
However when the page loaded, the error occurred.
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="../Stylesheet.css" rel="stylesheet" type="text/css" />
    <script src="SP.UI.Dialog.js" type="text/javascript"></script>
</asp:Content>

Open in new window

I am using SharePoint 2010, Visual Studio 2010.
Thank you very much.
ASKER CERTIFIED SOLUTION
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zhshqzyc
zhshqzyc

ASKER

Many thanks.