ASP.NET中用户自定义控件(WebUserControl)的使用

来源:互联网 发布:116网络兼职 编辑:程序博客网 时间:2024/04/30 01:20

 一、编辑用户控件(属性、事件)
1、添加属性
2、添加事件
参考:http://www.blueidea.com/tech/program/2003/903.asp
http://www.cnblogs.com/AXzhz/archive/2007/11/02/947011.html

二、使用方式(单独页添加、web.config中配置)
方法1:单独页添加
      头部注册:<%@ Register tagprefix="uc" tagname="Sample" src="UC/Sample.ascx" %>
      使        用:
方法2:web.config中配置
http://www.jb51.net/article/9426.htm
http://www.cnblogs.com/zhangronghua/archive/2007/12/27/1016318.html
http://news.newhua.com/news/2011/0121/114032.shtml

原创粉丝点击