使用C#使用ASP.NET进行用户控制 [英] user control with asp.net using c#
本文介绍了使用C#使用ASP.NET进行用户控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
asp.net中目标用户控制页面的用途,基本上是如何使用它.
Shubham vijay(使用c#和sql server 2005的初学者学习asp.net)
what the purpose user control page in asp.net, basically how to use it.
Shubham vijay( beginner learning asp.net using c# with sql server 2005 )
推荐答案
请尝试这篇CP文章
ASp.net中的用户控件
try this CP article
User Control in ASp.net
用户控件允许您保存现有ASP.NE
T页的一部分,并在许多其他ASP.NET页中重复使用.用户控件几乎与普通.aspx
页相同,但有两个区别:用户控件具有.ascx扩展名而不是.aspx
,并且可能没有<HTML>, <Body>, or <Form>
标记.
参考链接:- OREILLy- [自定义和用户控件] [
User controls allow you to save a part of an existingASP.NE
T page and reuse it in many other ASP.NET pages. A user control is almost identical to a normal.aspx
page, with two differences: the user control has the .ascx extension rather than.aspx
, and it may not have<HTML>, <Body>, or <Form>
tags.
Reference Link :- OREILLy-[Custom and User Controls][^]
用户控件用于重用控件.假设您在应用程序的多个页面中需要一个搜索框.您可以创建一个搜索用户控件,并将其放在您希望其可见的每个页面中.
因此,它是UI控件的容器,可为您的页面聚合可重复使用的块.
User Controls serve the purpose of reusing controls. Imagine you need a search box in several pages of your application. You can create a search user control and drop it in every page where you want it visible.
So, it''s a container of UI Controls that aggregates reusable blocks for your pages.
这篇关于使用C#使用ASP.NET进行用户控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文