什么是用户定义的标签 [英] what are user defined tags
本文介绍了什么是用户定义的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
在ASP.NET中,如果要使用某些gridview,我们将这样编写
Hi All
In ASP.NET, if we want to use some gridview,we will write like this
<asp:GridView runat="server">
但是我最近在一些网站上看到他们正在使用自己的标签.
例如
But I recently saw in some websites that they are using their own tags.
For Example
<ig:MyGrid runat="server">
两者有什么区别?
任何人都可以通过分享您的知识来对此进行一些澄清.(我是这项技术的新手)
ThankYou
What is difference between these two?
Please can anyone give some clarity about this by sharing your knowledge.(I am new to this technology)
ThankYou
推荐答案
似乎是 UserControl .
请参阅下面的文章,以获取有关 ASP.NET中的用户控件的更多信息.
ASP .NET中的用户控件
It seems to be UserControl.
Have a look at below article for more information on User controls in ASP.NET.
User controls in ASP .NET
第一个代表 ASP.NET 的控件,该控件名为"GridView". asp:代表特定的 NameSpace 的别名.
第二个是为某人"创建的自定义控件,称为MyGrid. ig:是自定义 Namespace 的别名.
希望对您有用.
The first one represent a control for ASP.NET, a control named "GridView". The asp: represent an alias for an especific NameSpace.
The second one is a custom control created for "someone" called MyGrid. The ig: is the alias for the custom Namespace.
Hope you can find useful.
这篇关于什么是用户定义的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文