Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi All

In ASP.NET, if we want to use some gridview,we will write like this
ASP.NET
<asp:GridView runat="server"> 

But I recently saw in some websites that they are using their own tags.
For Example
ASP.NET
<ig:MyGrid  runat="server">

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
Posted
Updated 27-Aug-12 8:49am
v2
Comments
[no name] 27-Aug-12 14:51pm    
"asp:GridView" uses the standard grid. "ig:MyGrid" would use a custom grid named MyGrid in whatever namespace ig is mapped to.

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
 
Share this answer
 
Comments
Christian Amado 27-Aug-12 14:58pm    
Can be a custom control either ;)
RaisKazi 27-Aug-12 15:21pm    
yup, :)
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900