Asp.Net中的用户控件 [英] User Controls in Asp.Net
本文介绍了Asp.Net中的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我想了解有关用户控件及其在Asp.net Web应用程序中的用法的更多信息.
在Asp.net中制作用户控件.
示例将很有帮助..
谢谢与问候,
Aamir
Hi Friends,
I want to know more about the User Control & its Use in Asp.net Web Applications.
User Control making in Asp.net.
Examples will be helpful..
Thanks & Regards,
Aamir
推荐答案
请点击下面的链接以了解asp.net中的用户控件:
http://msdn.microsoft.com/en-us/library/y6wb1a0e.aspx [ ^ ]
ASP .NET中的用户控件 [ http://asp.net-tutorials.com/user-controls/using/ [ ^ ]
祝一切顺利.
--Amit
Hi,
Follow the link below to know about user controls in asp.net:
http://msdn.microsoft.com/en-us/library/y6wb1a0e.aspx[^]
User controls in ASP .NET[^]
http://asp.net-tutorials.com/user-controls/using/[^]
All the best.
--Amit
用户控件是一种复合控件,其工作方式与ASP.NET网页非常相似 –您可以将现有的Web服务器控件和标记添加到用户控件,并定义该控件的属性和方法.然后,您可以将它们嵌入到ASP.NET
网页中,在该网页中它们作为一个单元.
用户控件实质上更易于创建,因为您可以重用现有控件.它们使创建带有复杂用户界面元素的控件特别容易.
参考:
ASP.NET用户控件概述 [如何:将Web窗体页面转换为ASP.NET用户控件 [ ^ ]
如何:创建ASP.NET用户控件 [如何:在网页中包含ASP.NET用户控件 [
A user control is a kind of composite control that works much like an ASP.NET Web page —you can add existing Web server controls and markup to a user control, and define properties and methods for the control. You can then embed them inASP.NET
Web pages, where they act as a unit.
User controls are substantially easier to create, because you can reuse existing controls. They make it particularly easy to create controls with complex user interface elements.
Refer:
ASP.NET User Controls Overview[^]
If you have developed anASP.NET
Web page and would like to access its functionality throughout your application, you can make some minor alterations to the page to change it to a user control.
Refer: How to: Convert Web Forms Pages into ASP.NET User Controls[^]
How to: Create ASP.NET User Controls[^]
How to: Include ASP.NET User Controls in Web Pages[^]
这篇关于Asp.Net中的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文