诸如如下代码:
客户端:
客户端代码提示没有Sys.UI.TextBox构造函数,但是Sys.UI.Control是存在并且可以构造成功的,xml-script直接就不运行,郁闷啊。莫非atlas CTP版本到atlas 1.0的改动去掉了这些?这改动也太大了吧。希望高手指点。
我安装了ASP.NET 2.0 AJAX Extensions 1.0,ASP.NET AJAX Control Toolkit和ASP.NET Futures (July 2007)。
客户端:
function initMyAjax() {
var condpart = new Sys.UI.TextBox($('condpart'));
var iscond = new Sys.UI.CheckBox($('iscond'));
}
xml-script:var condpart = new Sys.UI.TextBox($('condpart'));
var iscond = new Sys.UI.CheckBox($('iscond'));
}
<script type="text/xml-script">
<page xmlns="http://schemas.microsoft.com/xml-script/2005">
<components>
<Control id="condpart" visibilityMode="Collapse">
<bindings>
<binding dataContext="iscond" dataPath="checked" property="visible" />
</bindings>
</Control>
<CheckBox id="iscond" />
</components>
</page>
</script>
怎么在我的机器上都无法运行?<page xmlns="http://schemas.microsoft.com/xml-script/2005">
<components>
<Control id="condpart" visibilityMode="Collapse">
<bindings>
<binding dataContext="iscond" dataPath="checked" property="visible" />
</bindings>
</Control>
<CheckBox id="iscond" />
</components>
</page>
</script>
客户端代码提示没有Sys.UI.TextBox构造函数,但是Sys.UI.Control是存在并且可以构造成功的,xml-script直接就不运行,郁闷啊。莫非atlas CTP版本到atlas 1.0的改动去掉了这些?这改动也太大了吧。希望高手指点。
我安装了ASP.NET 2.0 AJAX Extensions 1.0,ASP.NET AJAX Control Toolkit和ASP.NET Futures (July 2007)。
红马天下 版权所有
博客:http://homer.cnblogs.com/
欢迎转载,但转载必须注明作者和出处。