C# <;表格>;标记导致aspx中出现Sharepoint错误

C# <;表格>;标记导致aspx中出现Sharepoint错误,c#,asp.net,html,sharepoint,C#,Asp.net,Html,Sharepoint,所以,我正在Sharepoint上开发.aspx应用程序,我想添加表单对话框。(问题不在于如何制作对话,是我做的)。问题是,当我使用: <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server"> <form id="Form1" runat="server"> <div id="dialog" style="display: no

所以,我正在Sharepoint上开发.aspx应用程序,我想添加表单对话框。(问题不在于如何制作对话,是我做的)。问题是,当我使用:

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
     <form id="Form1" runat="server">
                <div id="dialog" style="display: none">
                </div>
     </form>
      <asp:Button ID="Button1" runat="server" Text="Button" Style="display: none" OnClick="Button1_Click" />

我犯了一个错误

对不起,出了点问题

发生意外错误

日志没有什么特别之处


但当我删除表单标签时,即使对话框也能正常工作,但我不能使用我需要的一些东西。在那个div中,我有aspx控件,为了使它们可见,我想把它们放到表单中

sharepoint母版页已包含表单标记


删除表单标记或停止使用母版页

可能是无意中嵌套表单。