当前位置:编程学习 > C#/ASP.NET >>

Ajax

我用ajax控件怎么有的控件不能用,报如下错误:

“/AJAXEnabledWebSite1”应用程序中的服务器错误。
--------------------------------------------------------------------------------

The TargetControlID of 'CalendarExtender1' is not valid. The value cannot be null or empty. 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.InvalidOperationException: The TargetControlID of 'CalendarExtender1' is not valid. The value cannot be null or empty.

是怎么回事啊??


--------------------编程问答-------------------- 不会把。我的都能用阿
你再仔细检查检察 --------------------编程问答-------------------- 贴代码啊 --------------------编程问答-------------------- 没有代码?就拖个控件到页面上,什么都没有? --------------------编程问答-------------------- <cc1:CalendarExtender ID="CalendarExtender1" runat="server">
            </cc1:CalendarExtender> --------------------编程问答-------------------- 回答啊!在等啊 --------------------编程问答-------------------- 给他赋值试~试~~~ --------------------编程问答-------------------- 给它指定一个控件  <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="你要显示时间的控件名称"  Format="yyyy-MM-dd">
  </cc1:CalendarExtender>
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,