RSS
热门关键字:  Linux  图形  项目管理  LAMP  java
当前位置 : 主页>开源技术>AJAX技术>列表

ASP.NET AJAX入门系列(4):使用UpdatePanel控件(一)

来源:中国开源社区 作者:sherman 时间:2007-09-18 点击:
{

Calendar1.DayStyle.BackColor
=


System.Drawing.Color.FromName(ColorList.SelectedItem.Value);
字串9
}


</script>

四.ContentTemplateContainer属性

字串5

如果要使用编程的手法去设置UpdatePanel中的内容,需要创建一个UpdatePanel,并且添加控件到ContentTemplateContainer,而不能直接添加控件到ContentTemplate,如果想直接设置ContentTemplate,则需要编写一个自定义的Template,并去实现位于System.Web.UI命名空间下的接口ITemplate。看一个简单的来自于官方网站的例子:

字串3

<%@ Page Language="C#" %> 字串5

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册