在ASP中的工具箱中添加类 [英] adding class to toolbox in asp

查看:70
本文介绍了在ASP中的工具箱中添加类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows应用程序中编写了一个从按钮类继承的类.我可以在工具箱中添加它.但是在asp.net中,该类必须从按钮基类继承而来,但是不能在工具箱中添加该类.我已经在选择项目"对话框中进行了测试,但是无法添加类.请显示步骤.

I have written a class in windows application which is inherited from button class.I can add this in toolbox.But in asp.net the class must be inherited from button base class.But the class can not be added in toolbox.I have tested this from choose items dialog box but class can not be added.Please show the step.

推荐答案

hi,

在Web应用程序中,我们更喜欢创建一个UserControl来添加您自己的自定义控件
参见
链接1
链接2

希望您阅读这些文章后能得到更好的主意.


In web application we prefer to create a UserControl to add your own custom controls
see
Link 1
Link 2

I hope you will get better idea after reading these articles.


这篇关于在ASP中的工具箱中添加类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆