日期:2014-05-19  浏览次数:20463 次

关于使用Ajax ,toolkit时出现的的错误提示,大家来看看。
昨天装了个AjaxControlToolkit,
今天在aspx中加了个tabpanel1控件,提示说:呈现控件时出错—Tabpanel1
然后我运行的时候提示脚本错误:
行:407
字符:13
错误:Sys.InvalidOperationException:owner   must   be   set   before   initialize
代码:0
我在在网上查了,查不到这个错误提示。我在csdn上求救了,希望大家能给我点提示。
这个错误提示要怎么解决啊?
这个tabpanel控件要怎么用啊?




------解决方案--------------------
写的不明不白。应该是有个属性或方法没有初始化。
------解决方案--------------------
看看web.config有没有配置好
参考如下
<?xml version= "1.0 "?>
<configuration>
<configSections>
<sectionGroup name= "system.web.extensions " type= "System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<sectionGroup name= "scripting " type= "System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<section name= "scriptResourceHandler " type= "System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication "/>
<sectionGroup name= "webServices " type= "System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ">
<section name= "jsonSerialization " type= "System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "Everywhere "/>
<section name= "profileService " type= "System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication "/>
<section name= "authenticationService " type= "System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " requirePermission= "false " allowDefinition= "MachineToApplication "/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<connectionStrings>
<add name= "Test " connectionString= "server=192.168.230.190;uid=mouse;pwd=mouse;database=CKDB; "/>
</connectionStrings>
<system.web>
<pages>
<controls>
<add tagPrefix= "asp " namespace= "System.Web.UI " assembly= "System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
</controls>
</pages>
<!--
Set compilation debug= "true " to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug= "true ">
<assemblies>
<add assembly= "System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
<add assembly= "System.Drawing.Design, Vers