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

What is & in a url?

716


Define data caching?

693


What is gridview in asp.net?

668


What is content page in asp net?

689


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

695


What is the adavantage of using ASP.NET routing?

860


Can you explain autopostback?

717


How do you design a website with multilingual support in ASP.NET ?

741


What is cached data phone?

748


What is inproc and outproc?

739


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

808


Explain in what order a destructors is called.

779


What are web server controls in asp.net?

745


Explain asp.net page life cycle?

830


Differentiate between file-based dependency and key-based dependency.

716