SlideShare uma empresa Scribd logo
1 de 14
Directives in ASP.NET
Brought to you by
• ASP.NET directives are instructions to specify optional settings, such as registering a
custom control and page language. These settings describe how the web forms
(.aspx) or user controls (.ascx) pages are processed by the .Net framework.
• The syntax for declaring a directive is:
• <%@ directive_name attribute=value [attribute=value] %>
• In this section, we will just introduce the ASP.NET directives and we will use most of
these directives throughout the tutorials.
• The Application Directive
• The Application directive defines application-specific attributes. It is provided at the
top of the global.aspx file.
• The basic syntax of Application directive is:
• <%@ Application Language="C#" %>
Attributes Description
Inherits The name of the class from which to inherit.
Description The text description of the application. Parsers and
compilers ignore this.
Language The language used in code blocks.
The Assembly Directive
• The Assembly directive links an assembly to the page or the
application at parse time. This could appear either in the
global.asax file for application-wide linking, in the page file,
a user control file for linking to a page or user control.
• The basic syntax of Assembly directive is:
• <%@ Assembly Name ="myassembly" %>
Attributes Description
Name The name of the assembly to be linked.
Src The path to the source file to be linked and compiled
dynamically.
The Control Directive
• The control directive is used with the user controls and
appears in the user control (.ascx) files.
• The basic syntax of Control directive is:
• <%@ Control Language="C#" EnableViewState="false" %>
Attributes Description
AutoEventWireup The Boolean value that enables or disables automatic association of events to
handlers.
ClassName The file name for the control.
Debug The Boolean value that enables or disables compiling with debug symbols.
Description The text description of the control page, ignored by compiler.
EnableViewState The Boolean value that indicates whether view state is maintained across
page requests.
Explicit For VB language, tells the compiler to use option explicit mode.
Inherits The class from which the control page inherits.
Language The language for code and script.
Src The filename for the code-behind class.
Strict For VB language, tells the compiler to use the option strict mode.
• The Implements Directive
• The Implement directive indicates that the web page, master page or user control
page must implement the specified .Net framework interface.
• The basic syntax for implements directive is:
• <%@ Implements Interface="interface_name" %>
• The Import Directive
• The Import directive imports a namespace into a web page, user control page of
application. If the Import directive is specified in the global.asax file, then it is applied
to the entire application. If it is in a page of user control page, then it is applied to
that page or control.
• The basic syntax for import directive is:
• <%@ namespace="System.Drawing" %>
• The Master Directive
• The Master directive specifies a page file as being the mater page.
• The basic syntax of sample MasterPage directive is:
• <%@ MasterPage Language="C#" AutoEventWireup="true"
CodeFile="SiteMater.master.cs" Inherits="SiteMaster" %>
• The MasterType Directive
• The MasterType directive assigns a class name to the Master property of a
page, to make it strongly typed.
• The basic syntax of MasterType directive is:
• <%@ MasterType attribute="value"[attribute="value" ...] %>
• The OutputCache Directive
• The OutputCache directive controls the output caching policies of a web page
or a user control.
• The basic syntax of OutputCache directive is:
• <%@ OutputCache Duration="15" VaryByParam="None" %>
• The Page Directive
• The Page directive defines the attributes specific to the page file for the page
parser and the compiler.
• The basic syntax of Page directive is:
• <%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" Trace="true" %>
Attributes Description
AutoEventWireup The Boolean value that enables or disables page events that are being
automatically bound to methods; for example, Page_Load.
Buffer The Boolean value that enables or disables HTTP response buffering.
ClassName The class name for the page.
ClientTarget The browser for which the server controls should render content.
CodeFile The name of the code behind file.
Debug The Boolean value that enables or disables compilation with debug
symbols.
Description The text description of the page, ignored by the parser.
EnableSessionState It enables, disables, or makes session state read-only.
EnableViewState The Boolean value that enables or disables view state across page
requests.
ErrorPage URL for redirection if an unhandled page exception occurs.
Inherits The name of the code behind or other class.
Language The programming language for code.
Src The file name of the code behind class.
Trace It enables or disables tracing.
TraceMode It indicates how trace messages are displayed, and sorted by time or
category.
Transaction It indicates if transactions are supported.
ValidateRequest The Boolean value that indicates whether all input data is validated
against a hardcoded list of values.
• The PreviousPageType Directive
• The PreviousPageType directive assigns a class to a page, so that the page is strongly typed.
• The basic syntax for a sample PreviousPagetype directive is:
• <%@ PreviousPageType attribute="value"[attribute="value" ...] %>
• The Reference Directive
• The Reference directive indicates that another page or user control should be compiled and linked to the
current page.
• The basic syntax of Reference directive is:
• <%@ Reference Page ="somepage.aspx" %>
• The Register Directive
• The Register derivative is used for registering the custom server controls and user controls.
• The basic syntax of Register directive is:
• <%@ Register Src="~/footer.ascx" TagName="footer" TagPrefix="Tfooter" %>
Thank You
For more updates subscribe to our YouTube channel
SIRYMEDIA
To watch more videos visit our website
www.sirymedia.in

Mais conteúdo relacionado

Mais procurados

RichControl in Asp.net
RichControl in Asp.netRichControl in Asp.net
RichControl in Asp.net
Bhumivaghasiya
 

Mais procurados (20)

Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
 
EJB .
EJB .EJB .
EJB .
 
MVVM in iOS presentation
MVVM in iOS presentationMVVM in iOS presentation
MVVM in iOS presentation
 
jQuery Ajax
jQuery AjaxjQuery Ajax
jQuery Ajax
 
Servlet and servlet life cycle
Servlet and servlet life cycleServlet and servlet life cycle
Servlet and servlet life cycle
 
JSP Directives
JSP DirectivesJSP Directives
JSP Directives
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
ASP.NET State management
ASP.NET State managementASP.NET State management
ASP.NET State management
 
Servlet life cycle
Servlet life cycleServlet life cycle
Servlet life cycle
 
Master page in Asp.net
Master page in Asp.netMaster page in Asp.net
Master page in Asp.net
 
Asp net
Asp netAsp net
Asp net
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
RichControl in Asp.net
RichControl in Asp.netRichControl in Asp.net
RichControl in Asp.net
 
GRID VIEW PPT
GRID VIEW PPTGRID VIEW PPT
GRID VIEW PPT
 
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
javascript objects
javascript objectsjavascript objects
javascript objects
 
ASP.NET - Directives
ASP.NET - DirectivesASP.NET - Directives
ASP.NET - Directives
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 

Destaque

Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
rsnarayanan
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
Madhuri Kavade
 
Custom controls
Custom controlsCustom controls
Custom controls
aspnet123
 

Destaque (20)

Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
Skillwise - Advanced web application development
Skillwise - Advanced web application developmentSkillwise - Advanced web application development
Skillwise - Advanced web application development
 
Technical screening .Net Developer
Technical screening  .Net DeveloperTechnical screening  .Net Developer
Technical screening .Net Developer
 
ASP.NET - Web Programming
ASP.NET - Web ProgrammingASP.NET - Web Programming
ASP.NET - Web Programming
 
Asp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationAsp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentation
 
Introducing asp.net web pages 2
Introducing asp.net web pages 2Introducing asp.net web pages 2
Introducing asp.net web pages 2
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
 
Custom controls
Custom controlsCustom controls
Custom controls
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
ASP.NET Page life cycle and ViewState
ASP.NET Page life cycle and ViewStateASP.NET Page life cycle and ViewState
ASP.NET Page life cycle and ViewState
 
Ch3 server controls
Ch3 server controlsCh3 server controls
Ch3 server controls
 
ASP.NET Web Security
ASP.NET Web SecurityASP.NET Web Security
ASP.NET Web Security
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life Cycle
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)ASPX Session xi(page lifecycle)
ASPX Session xi(page lifecycle)
 

Semelhante a Directives in asp.net

Introduction to JSP
Introduction to JSPIntroduction to JSP
Introduction to JSP
Geethu Mohan
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
Ali Taki
 

Semelhante a Directives in asp.net (20)

Overview of MVC Framework - by software outsourcing company india
Overview of MVC Framework - by software outsourcing company indiaOverview of MVC Framework - by software outsourcing company india
Overview of MVC Framework - by software outsourcing company india
 
Introduction to JSP
Introduction to JSPIntroduction to JSP
Introduction to JSP
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep Dive
 
SFDC UI - Introduction to Visualforce
SFDC UI -  Introduction to VisualforceSFDC UI -  Introduction to Visualforce
SFDC UI - Introduction to Visualforce
 
Asp Net Advance Topics
Asp Net Advance TopicsAsp Net Advance Topics
Asp Net Advance Topics
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
Mvc
MvcMvc
Mvc
 
MVC by asp.net development company in india
MVC by asp.net development company in indiaMVC by asp.net development company in india
MVC by asp.net development company in india
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
Implementing java server pages standard tag library v2
Implementing java server pages standard tag library v2Implementing java server pages standard tag library v2
Implementing java server pages standard tag library v2
 
A View about ASP .NET and their objectives
A View about ASP .NET and their objectivesA View about ASP .NET and their objectives
A View about ASP .NET and their objectives
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
Web api
Web apiWeb api
Web api
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
SCWCD : Java server pages CHAP : 9
SCWCD : Java server pages  CHAP : 9SCWCD : Java server pages  CHAP : 9
SCWCD : Java server pages CHAP : 9
 
Asp PPT (.NET )
Asp PPT (.NET )Asp PPT (.NET )
Asp PPT (.NET )
 

Mais de Sireesh K (20)

Cn10
Cn10Cn10
Cn10
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
What is mvc
What is mvcWhat is mvc
What is mvc
 
31c
31c31c
31c
 
31cs
31cs31cs
31cs
 
45c
45c45c
45c
 
44c
44c44c
44c
 
43c
43c43c
43c
 
42c
42c42c
42c
 
41c
41c41c
41c
 
40c
40c40c
40c
 
39c
39c39c
39c
 
38c
38c38c
38c
 
37c
37c37c
37c
 
35c
35c35c
35c
 
34c
34c34c
34c
 
33c
33c33c
33c
 
30c
30c30c
30c
 
29c
29c29c
29c
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Directives in asp.net

  • 2. • ASP.NET directives are instructions to specify optional settings, such as registering a custom control and page language. These settings describe how the web forms (.aspx) or user controls (.ascx) pages are processed by the .Net framework. • The syntax for declaring a directive is: • <%@ directive_name attribute=value [attribute=value] %> • In this section, we will just introduce the ASP.NET directives and we will use most of these directives throughout the tutorials. • The Application Directive • The Application directive defines application-specific attributes. It is provided at the top of the global.aspx file. • The basic syntax of Application directive is: • <%@ Application Language="C#" %>
  • 3. Attributes Description Inherits The name of the class from which to inherit. Description The text description of the application. Parsers and compilers ignore this. Language The language used in code blocks.
  • 4. The Assembly Directive • The Assembly directive links an assembly to the page or the application at parse time. This could appear either in the global.asax file for application-wide linking, in the page file, a user control file for linking to a page or user control. • The basic syntax of Assembly directive is: • <%@ Assembly Name ="myassembly" %>
  • 5. Attributes Description Name The name of the assembly to be linked. Src The path to the source file to be linked and compiled dynamically.
  • 6. The Control Directive • The control directive is used with the user controls and appears in the user control (.ascx) files. • The basic syntax of Control directive is: • <%@ Control Language="C#" EnableViewState="false" %>
  • 7. Attributes Description AutoEventWireup The Boolean value that enables or disables automatic association of events to handlers. ClassName The file name for the control. Debug The Boolean value that enables or disables compiling with debug symbols. Description The text description of the control page, ignored by compiler. EnableViewState The Boolean value that indicates whether view state is maintained across page requests. Explicit For VB language, tells the compiler to use option explicit mode. Inherits The class from which the control page inherits. Language The language for code and script. Src The filename for the code-behind class. Strict For VB language, tells the compiler to use the option strict mode.
  • 8. • The Implements Directive • The Implement directive indicates that the web page, master page or user control page must implement the specified .Net framework interface. • The basic syntax for implements directive is: • <%@ Implements Interface="interface_name" %> • The Import Directive • The Import directive imports a namespace into a web page, user control page of application. If the Import directive is specified in the global.asax file, then it is applied to the entire application. If it is in a page of user control page, then it is applied to that page or control. • The basic syntax for import directive is: • <%@ namespace="System.Drawing" %>
  • 9. • The Master Directive • The Master directive specifies a page file as being the mater page. • The basic syntax of sample MasterPage directive is: • <%@ MasterPage Language="C#" AutoEventWireup="true" CodeFile="SiteMater.master.cs" Inherits="SiteMaster" %> • The MasterType Directive • The MasterType directive assigns a class name to the Master property of a page, to make it strongly typed. • The basic syntax of MasterType directive is: • <%@ MasterType attribute="value"[attribute="value" ...] %>
  • 10. • The OutputCache Directive • The OutputCache directive controls the output caching policies of a web page or a user control. • The basic syntax of OutputCache directive is: • <%@ OutputCache Duration="15" VaryByParam="None" %> • The Page Directive • The Page directive defines the attributes specific to the page file for the page parser and the compiler. • The basic syntax of Page directive is: • <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Trace="true" %>
  • 11. Attributes Description AutoEventWireup The Boolean value that enables or disables page events that are being automatically bound to methods; for example, Page_Load. Buffer The Boolean value that enables or disables HTTP response buffering. ClassName The class name for the page. ClientTarget The browser for which the server controls should render content. CodeFile The name of the code behind file. Debug The Boolean value that enables or disables compilation with debug symbols. Description The text description of the page, ignored by the parser.
  • 12. EnableSessionState It enables, disables, or makes session state read-only. EnableViewState The Boolean value that enables or disables view state across page requests. ErrorPage URL for redirection if an unhandled page exception occurs. Inherits The name of the code behind or other class. Language The programming language for code. Src The file name of the code behind class. Trace It enables or disables tracing. TraceMode It indicates how trace messages are displayed, and sorted by time or category. Transaction It indicates if transactions are supported. ValidateRequest The Boolean value that indicates whether all input data is validated against a hardcoded list of values.
  • 13. • The PreviousPageType Directive • The PreviousPageType directive assigns a class to a page, so that the page is strongly typed. • The basic syntax for a sample PreviousPagetype directive is: • <%@ PreviousPageType attribute="value"[attribute="value" ...] %> • The Reference Directive • The Reference directive indicates that another page or user control should be compiled and linked to the current page. • The basic syntax of Reference directive is: • <%@ Reference Page ="somepage.aspx" %> • The Register Directive • The Register derivative is used for registering the custom server controls and user controls. • The basic syntax of Register directive is: • <%@ Register Src="~/footer.ascx" TagName="footer" TagPrefix="Tfooter" %>
  • 14. Thank You For more updates subscribe to our YouTube channel SIRYMEDIA To watch more videos visit our website www.sirymedia.in