To create a Master Page for your web site in Visual Studio 2005, follow the given steps
Add Master Page
Click Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005 In Microsoft Visual Studio 2005, choose File | New | Web Site from the menus. In the Templates pane, select Empty Web Site. In the New Web Site dialog, click OK. In the Solution Explorer, right-click C:\...\WebSite1\ and click Add New Item. In the Templates pane, select Master Page. Click Add.
Formatting Master Page
In the MasterPage.master tab, click the Design tab. Click just before the ContentPlaceHolder control. Click Layout | Insert Table. Click the Template: radio button. In the Template: drop-down, select Header and Side. Click OK. In the top row, type My Web Site. Highlight the text My Web Site and click Format | Style. In the Size section, ensure Specific: is selected and select 14 pt. Set the text to Bold from the Absolute: dropdown box.. Click Background. In the Color drop-down, select Aqua. Click Position. Change the height of the cell to 20 px. Click OK. Drag and drop ContentPlaceHolder1 into the rightmost cell of the table
Usinging Master Page In the Solution Explorer, right-click C:\...\WebSite1\ and click Add New Item. In the Templates pane, select Web Form. In the Name: field, type Page1.aspx. Click to select Select master page. Click Add. Click OK.
|
No responses found. Be the first to respond and make money from revenue sharing program.
|