I. header. ASC
<Table width = "100%" border = "0" cellpadding = "0" cellspacing = "0" background = ".. /.. /images/s2pindex_11.gif "id =" table6 ">
<Tr>
<TD width = "7" Height = "29" valign = "TOP"> </TD>
<TD width = "510" valign = "Middle" style = "padding-left: 10px; filter: glow (color = # ffffff, strength = 3); color: #023490; padding-top: 3px; letter-Spacing: 8px ">
<Asp: placeholder id = "phjxttitle" runat = "server"> </ASP: placeholder> </TD>
<TD width = "65">
</TD>
<TD width = "9" valign = "TOP"> </TD>
</Tr>
</Table>
Ii. header. ASC. CS
Namespace S2P. application. Teacher. Controls
{
Using system;
Using system. Data;
Using system. drawing;
Using system. Web;
Using system. Web. UI;
Using system. Web. UI. webcontrols;
Using system. Web. UI. htmlcontrols;
Using system. text;
Using s2pdatabasepublic;
/// <Summary>
/// <Summary>
/// Brief description of top1.
/// </Summary>
Public class top1: system. Web. UI. usercontrol
{
Protected system. Web. UI. webcontrols. placeholder phjxttitle;
// Prepare attributes
Private string _ jxttitle = ""; // current page title
/// <Summary>
/// Current page title
/// </Summary>
Public String jxttitle
{
Get
{
Return _ jxttitle;
}
Set
{
_ Jxttitle = value;
}
}
Private void page_load (Object sender, system. eventargs E)
{
// Place the user hereCodeTo initialize the page
Phjxttitle. Controls. Add (New literalcontrol (jxttitle ));
}
# Code generated by region web Form Designer
Override protected void oninit (eventargs E)
{
//
// Codegen: This call is required by the ASP. NET web form designer.
//
Initializecomponent ();
Base. oninit (E );
}
/// <Summary>
/// The designer supports the required methods-do not use the code editor
/// Modify the content of this method.
/// </Summary>
Private void initializecomponent ()
{
This. Load + = new system. eventhandler (this. page_load );
}
# Endregion
}
}