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

Master Pages and Factory Pattern

Rate me:
Please Sign up or sign in to vote.
4.35/5 (16 votes)
17 Jan 2007CPOL6 min read 66.2K   792   50  
Master pages and factory patterns using ASP.NET
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterGrid.master.cs" Inherits="Pages_MasterGrid" %>
<%@ Register Assembly="MagicAjax" Namespace="MagicAjax.UI.Controls" TagPrefix="magicAjax" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title id="pageTitle" runat="server">Foreclosure Processing System</title>
    <style type="text/css">
    .DataGridFixedHeader { POSITION: relative; ; TOP: expression(this.offsetParent.scrollTop); BACKGROUND-COLOR: white }
    </style>
</head>
<body>
    <form id="form1" runat="server">

        <table border="0" cellpadding="0" cellspacing="0" style="width: 98%; height: 74%">
            <tr>
                <td colspan="2" style="background-color: #f7f6f3">
                    <uc1:Header ID="Header1" runat="server" />
                
                </td>
            </tr>

            <tr>
                
                <td style="background-color: #F7F6F3; width: 184px;" valign="top">
                    <magicAjax:AjaxPanel ID="AjaxPanel1" runat="server" Width="300px">
                    <asp:Panel ID = "myPanel" runat ="server" ScrollBars ="Vertical" Height = "290">
                    <dd:GridView ID="GV_TitleCompany" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" AllowSorting="True" EmptyDataText="Company Name" OnSelectedIndexChanged="GV_TitleCompany_SelectedIndexChanged" Width="280px">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"  />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                          
                        
                   </dd:GridView>
                    </asp:Panel>
                    
                    </magicAjax:AjaxPanel>
                    
                </td>
                

                <td style="background-color: #f7f6f3" valign="top">
                    <magicAjax:AjaxPanel ID="AjaxPanel2" runat="server" Width="300px">
                    <asp:Panel ID = "Panel1" runat ="server" ScrollBars ="Vertical" Height = "290"> 
                       <dd:GridView ID="GV_BranchName" runat="server" AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" EmptyDataText="No branch for the comapany" Width="280px" OnSelectedIndexChanged="GV_BranchName_SelectedIndexChanged">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"  />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                           <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        
                       </dd:GridView>
                    </asp:Panel>

                    </magicAjax:AjaxPanel>
                 </td>
               
            </tr>
            <tr>
                <td colspan="2" style="height: 65px; background-color: #f7f6f3" valign="top">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </td>

          </tr>

        </table>
    


    </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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Systems Limited
Pakistan Pakistan
I have graduated from SirSyed university of engineering and technology in year 2005. Working on Microsoft Platform for 3 years.
I like to work on new technologies. Always keen to learn new orientation in software design. Design patterns is the area for which i am looking to work on.

Comments and Discussions