What is the use of directives & explain with example?

Answer Posted / guest

Directive Specifies settings used by the page and user
control compilers when they processes ASP.NET Web Forms
page (.aspx) and user control (.ascx) files.


< @Page Attributes..... /> contain specific attributes for
page
< @Import Attributes...../> contain specific attributes
for include libraries
< @Register Attributes...../> contain specific attributes
for control to be register for ther perticular page

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about Application and Session Events ?

629


Why we are using mvc instead of asp.net? : Asp.Net MVC

516


What is scope of an application variable in asp.net?

486


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

556


What is the main function of url routing system in asp.net mvc? : asp.net mvc

482






What are the advantages and disadvantages of session?

656


What is server side session?

511


What is difference between session and viewstate?

465


What is the difference between custom web user control and a custom web server control?

495


9. Why should we hire you over the others waiting to be interviewed?

2126


what is DLL Hell and how it is solved in .NET? please explain clearly??

1877


Can we have multiple web config files for an asp.net application?

527


Explain server-side scripting?

560


Is there any property names “isnavigating”?

570


What is application and session in asp.net?

528