Whats the use of @ Register directives ?
Answers were Sorted based on User's Feedback
Syntax:
1) <%@ Register tagprefix="tagprefix" Namespace="namespace"
Assembly="assembly" %>
2) <%@ Register tagprefix="tagprefix"
Tagname="tagname" Src="pathname" %>
3) <%@ Register tagprefix="tagprefix" Namespace="namespace" %>
(Note : Assembly name can not include file extension.)
* Used to add the custom server controls, decoratively to a
web page, master page or a skin file.
* used to add user control declarative to a web page, master
page or a skin file.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / minhajul islam
It is used to register user or 3rd control into asp.net web
page.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / skmdali786
@ Register
Associates aliases with namespaces and class names for
concise notation in custom server control syntax.
<%@ Register tagprefix="tagprefix" Namespace="namespace"
Assembly="assembly" %><%@ Register tagprefix="tagprefix"
Tagname="tagname" Src="pathname" %>
Attributes
tagprefix
An alias to associate with a namespace.
tagname
An alias to associate with a class.
Namespace
The namespace to associate with tagprefix.
Src
The location (relative or absolute) of the declarative User
Control file to associate with the tagprefix:tagname pair.
Assembly
The assembly in which the namespace that you are associating
with tagprefix resides.
Note The assembly name does not include a file name
extension.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / srikanth
Its Only to add Web User Control Page to Normal Asp.Net Page in Source Code...
Is This Answer Correct ? | 0 Yes | 1 No |
About CLS and CTS?
8 Answers Microsoft, Syncfusion,
What are ASHX files?
What are custom user controls in asp.net?
Differences between VB.Net and C#, related to OOPS concepts
What is intrinsic objects in asp.net?
what is webpart? what r the parts in this webpart (zone)
How to check null values in dataset ?
How do you relate an aspx page with its code behind Page?
How can we pass info between 2 asp.net pages?
How to handle errors in Web API?
Interface have Default Modifier Is 'Public'.Where We Will Use The KeyWord In Interface?
3 Answers Phoenix Technologies,
How to manage pagination in a page?