在Asp.net中创建自定义控件

问题描述:

任何人都可以告诉我如何在asp.net中创建自定义控件。

提前感谢。

Can any one tell me how to create a custom control in asp.net.
thanks in advance.

您的问题涵盖了一个广阔的话题有两种自定义控件:UserControl和WebControl。

首先你必须决定要实现哪一个然后开始编码......



有关如何选择和如何实施的完整参考资料,请访问此处 [ ^ ]
Your question covers a vast topic. There are 2 kind of custom ontrols : UserControl and WebControl.
First you have to decide which one you want to implement and then start coding...

A complete reference on how to choose and how to implement is available here [^]


hi,



查看以下链接。

Web用户控件1 [ ^ ]

Web用户控件2 [ ^ ]

您的第一个ASP.NET自定义控件 [ ^ ]

使用c#在asp.net 2.0中创建自定义控件 [ ^ ]



希望它有所帮助。


check below links.
Web user control 1[^]
Web user control 2[^]
Your First ASP.NET Custom Control[^]
Creating Custom controls in asp.net 2.0 with c#[^]

hope it helps.