问题描述
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>无标题页</title></head><body><formid="form1"runat="server"><cc1:ToolkitScriptManagerID="ToolkitScriptManager1"runat="server"></cc1:ToolkitScriptManager><cc1:AccordionID="Accordion1"runat="server"FadeTransitions="True"FramesPerSecond="100"TransitionDuration="1000"SuppressHeaderPostbacks="True"RequireOpenedPane="False"><Panes><cc1:AccordionPaneID="AccordionPane1"runat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"HeaderSelectedCssClass="accordionHeaderSelected"SuppressHeaderPostbacks="True"><Header><ahref=""onclick="returnfalse"></a>1111</Header><Content>22222</Content></cc1:AccordionPane><cc1:AccordionPaneID="AccordionPane2"runat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"HeaderSelectedCssClass="accordionHeaderSelected"><Header>3333</Header><Content>22222</Content></cc1:AccordionPane></Panes></cc1:Accordion></form></body></html>这运行本来好好的,然后我修改了Accordion的属性,代码就自动变成了<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"%><%@Registerassembly="AjaxControlToolkit"namespace="AjaxControlToolkit"tagprefix="cc1"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>无标题页</title></head><body><formid="form1"runat="server"><cc1:ToolkitScriptManagerID="ToolkitScriptManager1"runat="server"></cc1:ToolkitScriptManager><cc1:AccordionID="Accordion1"runat="server"FadeTransitions="True"FramesPerSecond="100"TransitionDuration="1000"SuppressHeaderPostbacks="True"RequireOpenedPane="False"><Panes><cc1:AccordionPaneID="AccordionPane1"runat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"HeaderSelectedCssClass="accordionHeaderSelected"SuppressHeaderPostbacks="True"><Header><ahref=""onclick="returnfalse"></a>1111</Header><Content>22222</Content></cc1:AccordionPane><cc1:AccordionPaneID="AccordionPane2"runat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"HeaderSelectedCssClass="accordionHeaderSelected"><Header>3333</Header><Content>22222</Content></cc1:AccordionPane></Panes><cc1:AccordionExtenderrunat="server"TransitionDuration="1000"FadeTransitions="True"FramesPerSecond="100"SuppressHeaderPostbacks="True"Enabled="True"TargetControlID="Accordion1"ID="Accordion1_AccordionExtender"RequireOpenedPane="False"></cc1:AccordionExtender><cc1:AccordionPanerunat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"ID="AccordionPane1"HeaderSelectedCssClass="accordionHeaderSelected"SuppressHeaderPostbacks="True"><Header><ahref=""onclick="returnfalse"></a>1111</Header><Content>22222</Content></cc1:AccordionPane><cc1:AccordionPanerunat="server"HeaderCssClass="accordionHeader"ContentCssClass="accordionContent"ID="AccordionPane2"HeaderSelectedCssClass="accordionHeaderSelected"><Header>3333</Header><Content>22222</Content></cc1:AccordionPane></cc1:Accordion></form></body></html>运行就报错了(我实在设计那里修改属性的),求高手解答
解决方案
解决方案二:
把多出来的删掉
解决方案三:
我是想知道为什么回出现这些代码!
解决方案四:
不用ajax控件,你设置了什么属性
解决方案五:
引用3楼sandy945的回复:
不用ajax控件,你设置了什么属性
不用ajax?哪个是ajax的控件啊--------无论设置哪个属性他都会多出那些代码的