Click here to Skip to main content
15,892,059 members
Articles / Web Development / ASP.NET

How To Develop Cascading Master Pages in ASP.NET (.NET Framework 1.x) Without Using Custom Controls

Rate me:
Please Sign up or sign in to vote.
3.68/5 (29 votes)
9 Nov 20049 min read 209.1K   1.1K   74  
Article shows a very simple but powerful way to use Cascading Master Pages design pattern in .NET without using Custom Controls.
<%@ Page language="c#" Codebehind="CasadingContextPage1.aspx.cs" AutoEventWireup="false" Inherits="demo.cascading.CasadingContextPage1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
    <title>CasadingContextPage1</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
  </HEAD>
  <body >
	
    <form id="Form1" method="post" runat="server">
    <p align="center">
		<asp:TextBox id=cp1TextBox1 runat="server"></asp:TextBox>
		<br>
		<asp:Button id=cp1Button1 runat="server" Text="Validate Context Page 1 View State"></asp:Button>
		<br>
		<asp:LinkButton id=cp1LinkButton1 runat="server"> Go To Context Page 2</asp:LinkButton>
	</p>
     </form>
	
  </body>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions