如何在asp.net中创建可重用的网格视图组件(如日期时间选择器)? [英] How to create a reusable grid view component like date time picker in asp.net?

查看:77
本文介绍了如何在asp.net中创建可重用的网格视图组件(如日期时间选择器)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个可重用的用户控件,其中包含asp.net中的日期时间选择器.需要在网格视图中将该用户控件添加为列.单击该列时,必须显示日期时间选择器.哪种方法合适,创建组件或创建用户控件.还想知道,如何添加它组件添加到工具箱中?

I want to create a reusable user control which contains a date time picker in asp.net. Need to add this user control in a grid view as column.While clicking the column,date time picker has to be displayed.Which is the suitable method,Creating the component or creating the user control.Also want to know,How to add this component in to the toolbox?

推荐答案

您可以拖放UserControl,而无需将它们放在工具框中.当您处于.aspx或.ascx页面的设计模式时,可以从解决方案资源管理器中拖放UserControl(只需选择文件并拖动它).

You can drag and drop UserControls without them being in the tool box. When you're in design mode for an .aspx or .ascx page, you can drag and drop the UserControl from the Solution Explorer (by just selecting the file and dragging it).

这篇关于如何在asp.net中创建可重用的网格视图组件(如日期时间选择器)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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