Whats the use of @ Register directives ?

Answers were Sorted based on User's Feedback



Whats the use of @ Register directives ?..

Answer / sagar kute

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

Whats the use of @ Register directives ?..

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

Whats the use of @ Register directives ?..

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

Whats the use of @ Register directives ?..

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

Post New Answer

More ASP.NET Interview Questions

Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

0 Answers   MCN Solutions,


How would you create a permanent cookie?

0 Answers  


What type of code (server or client) is found in a Code- Behind class?

2 Answers  


how to convert varchar into datatype int............. in ASP

1 Answers  


what is an Eventbubbling?

3 Answers   DSS,






Why is an object pool required?

0 Answers  


What is an axd file?

0 Answers  


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

0 Answers  


What is the difference between the response.write() and response.output.write() methods?

0 Answers  


Explain about solution explorer window?

0 Answers  


If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ?

1 Answers   Satyam,


Why is mvc better than asp.net?

0 Answers  


Categories