开发用户控件 [英] Developing User Controls

查看:64
本文介绍了开发用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何开发用户控件。喜欢将控件拖放到窗体中,并将​​属性和事件设置为该控件,并使用该控件管理工作流程,



In提前谢谢。

How To Develope User Controls. like to drag and drop that controls in to forms.and set the properties and event on to that controls and also to manage the workflow using that controls,,,

In advance thanks.

推荐答案

开始这里 [ ^ ]。






这里有屏幕截图



http://www.c-sharpcorner.com / UploadFile / jayendra / 528 / [ ^ ]





和视频教程



http://www.asp.net/gener al / videos / how-do-i-create-a-custom-user-control-in-aspnet [ ^ ]


你可以创建用户control as add-> ;; New Item-> ;; WebUserControl

在这里你可以根据需要创建控件

然后只需将用户控件添加到你的页面,

You can create user control as add->;New Item->;WebUserControl
Here you can create controls as you needed
then just add the user control to your page as,
<%@ Register Src="../Controls/UserContrl.ascx" TagName="UsrCntrl" TagPrefix="uc1" %>;





然后在你的身体部分

只需使用



Then in your body section
just use

<uc1:UsrCntrl  runat="server" id="us" />





如果您有任何疑问,请随意询问..



If you have any doubt.feel free to ask..


这篇关于开发用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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