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

how can u create the blog in asp.net with C#?what is the data type u will use to store in sql server?

0 Answers   IBM,


What is the use of placeholder control? Can we see it at runtime?

0 Answers  


With out Web.config can we executes the application?

10 Answers   Valtech,


What is active web page?

0 Answers  


What are the elements of a website?

0 Answers  






How to retrieve user name in case of Window Authentication?

0 Answers  


Finally and dispose methods?

1 Answers   Microsoft,


I have one .Net application and i have two databases which is in SQL server2000 and one more database in ORACLE? how can i access the database from different Databases?

3 Answers   eXensys,


Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do you add an event handler?

1 Answers   Zenith,


how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance?

3 Answers   Emphasis, Mphasis, TCS,


What events will occur when a page is loaded?

0 Answers  


Clearly Explain the ispostback

6 Answers   TCS,


Categories