您的位置:首页 > 编程语言 > ASP

ASP.NET自定义控件组件开发 第五章 模板控件开发

2014-03-12 19:25 225 查看
原文:ASP.NET自定义控件组件开发 第五章 模板控件开发

第五章 模板控件开发



大家好,我们今天来开发一个模板控件。

其实开发一个模板控件比开发一个组合控件更加简单,所以这章不难。

开发一个模板控件一般都继承CompositeControl,因为继承这个基类后,我们就省却了很多的麻烦。所以本章我们开

发的模板控件也继承于CompositeControl。大家应该还记得我们上章开发那个登录Login控件吧,如下:

public class MyLoginDesigner : CompositeControlDesigner

2using System;

2using System.Collections.Generic;

3using System.Text;

4using System.Web;

5using System.Web.UI;

6using System.Web.UI.WebControls;

7using System.ComponentModel;

8using System.Web.UI.Design;

9using System.Web.UI.Design.WebControls ;

10using System.Collections ;

11

12

13

14

15namespace LoginControl

16

.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐