如何创建自定义Web控件...? [英] How to create a custome web control...?
问题描述
1)我想创建一个将从web.UI.controls.textbook继承的类.
2)我想添加所有功能,例如所需的归档,电子邮件验证,日期验证(日历绑定到文本框),以及通过按UP和DOWN键
3)这样,我想编辑其他一些控件,例如gridview,label,link button等.
4)使用所有我想进行设置的类,例如telrik,dev express等,可以进行第三方设置.
我是自定义控件的新手,请给我建议,我们将不胜感激.
谢谢!!!
Tejas Vaishnav
1) I want to create a class that will inherited from the web.UI.controls.textbook.
2) I wanted to add all the functionality like required filed,email validation, date validation (with Calender bounded to text box) and also key press events for text box to edit date/month/year by pressing UP and Down key
3) like this i wanted to edit some other controls also like gridview,label,link button etc..
4)using all that class i wanted to make setup as third party setup is available like telrik, dev expressed etc.
I m new in custom control please give me suggestions for this it will be appreciated.
Thank You!!!
Tejas Vaishnav
推荐答案
开发自定义ASP.NET服务器控件 [^ ]
ASP.NET自定义控件:第1部分 [此 [
Developing Custom ASP.NET Server Controls[^]
ASP.NET Custom Controls: Part 1[^]
Would be a good place to start, and so would this[^]
您可以找到一些不错的选择CodeProject本身中的示例
ASP.NET必需的文本框(图形RequiredFieldValidator) [构建ASP.NET自定义Web控件:一个文本框和一个验证器合而为一 [
You can find some nice samples in CodeProject Itself
ASP.NET Required TextBox (Graphical RequiredFieldValidator)[^]
and
Building an ASP.NET custom web control: a textbox and validator in one[^]
Hope this will help you to go forward.
这篇关于如何创建自定义Web控件...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!