.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is the significance of @Register directive?

Posted By :Maverick     Posted Date :July 31, 2011    Points :40   Category :.NET Framework 
@Register directive informs the compiler of any custom server control added to the page.

You can also find related Interview Question to What is the significance of @Register directive?  below: 

Where and how can you register the HTTP Handlers and HTTP Handler Factories

The information about HTTP Handlers and HTTP Handler Factories are registered in both machine.config & web.config. It is registered with the tag as follows.


How can we register a custom server control to a web page ?

we can register a custom server control to a web page using

@Register directive (More...)

What is Instruction Register(IR)?

Instruction Register or IR holds the instruction that is currently being executed. Its output is available to the control circuits which generates the timing signals that control various processing elements involved in the execution of instructions. (More...)

What is use of the AutoEventWireup attribute in the Page directive ?

The AutoEventWireUp is a boolean attribute that allows automatic wireup of page events when this attribute is set to true on the page. It is set to True by default for a C# web form whereas it is set as False for VB.NET forms. Pages developed with Visual Studio .NET have this attribute set to false, and page events are individually tied to handlers.

Which is the method to register javascript in ASP.NET?


Eg: ClientScript.RegisterStartupScript(GetType(), "key", "script"); (More...)

What's the significance of "GLOBAL.ASAX" file ?

GLOBAL.ASAX allows us to executing ASP.NET application level events and setting application-level variables. (More...)

Duration attribute of @OutputCache page directive In ASP

The @OutputCache directive’s Duration attribute determines how long the page is cached.
If the duration attribute is set to 60 seconds, the Web form is cached for 60 seconds; the server loads the response in memory and retains that response for 60 seconds.
Any requests during that time receive the cached response.
Once the cache duration has expired, the next request generates a new response and cached for another 60 seconds. (More...)

What is Page directive?

Page directive is the code present at the top of the every ASP.NET page with .aspx extension. It contains instructions about the page execution and optional settings.
Syntax for declaring a page directive:

<%@ Page Title="ASP.NET" Language="C#" AutoEventWireup="true" CodeFile="asp.aspx.cs" Inherits="QuesandAns" %>


Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend