alt
Advertisement
Online Training
Career Series
Exforsys
Exforsys arrow Tutorials arrow ASP.NET 2.0 arrow ASP.NET 2.0 : Working With Master Pages
Site Search


ASP.NET 2.0 : Working With Master Pages
Article Index
ASP.NET 2.0 : Working With Master Pages
Page 2
Page 3

.

.

.

To add static content to the master page

1. Click the bottom right cell, and then type footer text such as "Copyright 2005 Exforsys Inc."
2. In the Toolbox, from the Navigation group, drag a Menu control onto the top cell.

3. Create a menu by following these steps:

a. Set the Menu control's Orientation property to Horizontal.

b. On the Menu control's Common Menu Tasks menu, click Edit Menu Items.

4. Under Nodes, click the Add a root node icon twice to add two menu items.

a. Click the first node, and then set Text to Home and NavigatUrl to Home.aspx.

b. Click the second node, and then set Text to About and NavigatUrl to About.aspx.

c. Close the node editor.

5. If you have a graphics file available to use as a logo, follow these steps to place it on the master page:

a. In Solution Explorer, right-click the name of your Web site, and then click Add Existing Item.

b. Navigate to your graphics file, select the graphic file, and then click Add.

c. In the Toolbox, from the Standard group, drag an Image control to the middle left-most column of the table.

d. Set the Image control's ImageUrl property to the name of the graphics file.

The content place holder can now be positioned to display content at runtime.

To add a content placeholder

1. Drag the ContentPlaceHolder control onto the middle right-most cell.

2. The control's ID property is ContentPlaceholder1. This name can be changed if so desired.

3. Save the page.


Trackback(0)
Comments (1)add comment

omprakash said:

  this is good to understood what is master page provide some more information also on the same ... gud wrk..
November 20, 2007

Write comment

busy

 
< Prev   Next >
Exforsys Offers
© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape