ASP.NET

1. ASP.NET Introduction 2. Comp of .Net Framework 3.5 3. Sys.Req for VS 2008 4. ASP.NET Envrmnt Setup 5. VS2010 Ultimate Sys.Req 6. Installing VS 2010 7. VS 2012 Sys.Req 8. Installing VS Exp 2012 9. Start the VS 2008 10. Application Life Cycle 11. Page Life Cycle 12. Page Life Cycle Events 13. ASP.NET Example 14. Event Handling 15. Default Events 16. Server Side 17. Request Object 18. Response Object 19. Server Controls 20. Server Controls Properties 21. Server Controls Methods 22. HTML Server Controls 23. Client Side 24. ASP.NET Basic Controls 25. TextBox Control 26. CheckBox Controls 27. RadioButton Controls 28. ListBox Control 29. HyperLink Control 30. Image Control 31. BulletedList Control 32. ASP.NET Directives 33. Implements Directive 34. Master Type Directive 35. Page Directive 36. PreviousPage Type 37. Managing State 38. Control State 39. Cookies 40. Query Strings 41. Server-Side State 42. Session State 43. Validation Controls 44. Required FieldValidator 45. Range Validator 46. Compare Validator 47. RegularExpressionValidator 48. Custom Validator 49. Validation Summary 50. Data Source Control 51. AdRotator Control 52. Calendar Control 53. Calendar Control Example 54. Panel Control 55. Panel Control Example 56. Multi Views Control 57. MultiView & View controls 58. MultiView Control Example 59. FileUpload Control 60. FileUpload Control Eg 61. AJAX Control 62. UpdatePanel control 63. UpdateProgress Control 64. Custom Controls 65. Custom Control Eg 66. Personalization 67. Create Simple Profile 68. ADO.NET 69. ADO.NET Objects 70. DataTable 71. DataRow 72. DataColumn 73. Object Example 74. Error Handling 75. Tracing Errors 76. Debugger 77. Security 78. Authentication 79. Authorization 80. LINQ 81. LINQ Query Operators 82. LINQ Example 83. Caching 84. Data Caching 85. Output Caching 86. Object Caching 87. Web Services 88. Create Web Services Eg 89. Web & Machine.config 90. Settings Schema 91. ASP.NET Deployment 92. XCopy Deployment 93. Web Setup Project 94. ASP Interview Part 1 95. ASP Interview Part 2 96. ASP Interview Part 3 97. ASP Interview Part 4 98. ASP Interview Part 5 99. ASP Interview Part 6
Pr.Pg Next Pg

@ Master Type Directive tutorials

  • Provides a way to create a strongly typed reference to the ASP.NET master page when the master page is accessed from the Master property

 

Syntax:

The syntax of MasterType directive is.

<%@ MasterType attribute="value" [attribute="value"...] %>

  • The following table shows the attributes and properties of the MasterType directive.

 

Attributes

Description

TypeName

This attribute specifies the type name for the master page

VirtualPath

Specifies the path to the file that generates the strong type

 

  • Example: The following code example demonstrates how to set the virtual path to an ASP.NET master page.

<%@ MasterType VirtualPath="~/masters/SourcePage.master"" %>


@ OutputCache

  • The OutputCache directive controls output caching for a page or user control.

 

Syntax:

The syntax of @ OutputCache is

<%@ OutputCache Duration="#ofseconds"

Location="Any | Client | Downstream | Server | None | ServerAndClient "

Shared="True | False" VaryByControl="controlname"

VaryByCustom="browser | customstring" VaryByHeader="headers"

VaryByParam="parametername" VaryByContentEncoding="encodings"

CacheProfile="cache profile name | ''" NoStore="true | false"

SqlDependency="database/table name pair | CommandNotification"

%>

  • The following table shows the list of attributes and description of OutputCache Directive.

 

Attributes

Description

Duration

The time, in seconds, that the page or user control is cached

Setting this attribute on a page or user control establishes an expiration policy for HTTP responses from the object and will automatically cache the page or user control output.

Location

One of the OutputCacheLocation enumeration values, The default is Any.

CacheProfile

The name of the cache settings to associate with the page

This is an optional attribute and defaults to an empty string ("").

NoStore

A Boolean value that determines whether to prevent secondary storage of sensitive information

Shared

A Boolean value that determines whether user control output can be shared with multiple pages, The default is false. For more information, see the Remarks section.

Sql Dependency

A string value that identifies a set of database and table name pairs that a page or control's output cache depends on

VaryByCustom

Any text that represents custom output caching requirements. If this attribute is given a value of browser, the cache is varied by browser name and major version information.

VaryByHeader

A semicolon-separated list of HTTP headers used to vary the output cache. When this attribute is set to multiple headers, the output cache contains a different version of the requested document for each combination of specified headers.

VaryByParam

A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method.

VaryByControl

A semicolon-separated list of strings used to vary a user control's output cache.

VaryByContentEncodings

A semicolon-separated list of strings that are used to vary the output cache

The VaryByContentEncodings attribute is used with the Accept-Encoding header to determine how cached responses are served for different content encodings.

 

Example:

<%@ OutputCache Duration="180" VaryByParam="None" %>

 

Pr.Pg border                                              Next Pg