•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,612 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 854 | Replies: 3
![]() |
| |
•
•
Join Date: Oct 2007
Posts: 25
Reputation:
Rep Power: 2
Solved Threads: 0
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?
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?
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
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:
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.
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
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.
Please post your full code as it is now in code tags please. Otherwise I can't help.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Plz Solve this problem... (C++)
- friend plz help me to solve this problem (C++)
- plz help to solve this prob (ASP.NET)
- plzz solve my problem (C++)
- Anyway can help me to solve this problem??? (C++)
- hijack this log:Please help diagnose problem (Viruses, Spyware and other Nasties)
- plz help me to connect more than one table in the ms access database to the asp.net (ASP.NET)
- CDBException can't solve problem (ASP.NET)
- please help been at my pc for hours still cannot solve problem (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: FolderBrowseDialog in ASP.Net
- Next Thread: Big Repeater Question for you all



Hybrid Mode