943,753 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1437
  • ASP.NET RSS
Nov 5th, 2007
0

plz solve my problem of master pages

Expand Post »
hi...
i have three pages in my website
site.master
default.aspx
home.aspx

in master page
there is a link button named home...
the following is the coding of all three pages...
site.master
<html>
<head>
<link rel="stylesheet" href="StyleSheet.css" type="text/css" />
</head>
<body>
<form id="Form1" runat="server">
<div>
<table class="main" cellspacing="0" cellpadding="2">
<tr class="header">
<td colspan="2" class="header"/>
</tr>
<tr valign="top">
<td class="sidebar" rowspan="2">
<a href="home.aspx">home</a><br/>
</td>
<td class="body">
<asp:contentplaceholder id="cph" runat="server">
<h3>Welcome to my first website!</h3>
We have an enormous selection of quality flowers and seeds, available for shipping to any location worldwide. Let us handle all you gardening needs!
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
<asp:label id="Footer" font-italic="true" text="Copyright Microsoft 2003" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
**************************************************
home.aspx
<%@ page language="C#" masterpagefile="~/Site.master" %>

<asp:content id="Content1" contentplaceholderid="cph" runat="server">
With sunshine, water, and careful tending, roses will bloom several times in a season.
</asp:content>
**********************************************************************
Default.aspx
<%@ page language="C#" masterpagefile="~/Site.master" %>

***********************************
problem is that when i prss f5. dafault page is executed any nothing is appear on output...
and when i make home page as a start page only home link is displayed...
wat the hell is this...
can any body help me?
Similar Threads
Reputation Points: 15
Solved Threads: 6
Junior Poster
navi17 is offline Offline
118 posts
since Oct 2007
Nov 5th, 2007
0

Re: plz solve my problem of master pages

The content place holder in site.master should be empty of any html, that's where the default and home pages will place their content.

Move the html in the site.master OUT from between the content place holder cph.

Add the:<asp:content id="Content1" contentPlaceHolderId="cph" runat="server">
</asp:content>
tags to the deafult.aspx page as it is missing.
Last edited by hollystyles; Nov 5th, 2007 at 11:01 am.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Nov 7th, 2007
0

Re: plz solve my problem of master pages

no its stil not working...........
same problem again occurs....
which page would i select as start page
eithe home or default?
Reputation Points: 15
Solved Threads: 6
Junior Poster
navi17 is offline Offline
118 posts
since Oct 2007
Nov 7th, 2007
0

Re: plz solve my problem of master pages

Whichever one you want to be the main page. It's only for debugging anyway so that VS knows which page you want to start the app at.

Please post your full code as it is now in code tags please. Otherwise I can't help.
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: FolderBrowseDialog in ASP.Net
Next Thread in ASP.NET Forum Timeline: Big Repeater Question for you all





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC