473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

problem with master pages, solution plz

I have created a master page. When I am adding this master page to .aspx files which are in the root directory, it is working fine. When , I am adding master page to .aspx files which are in sub folders , I am getting some problem. Initially, images are not displayed. If I am using runat="server", they are dispalyed. But , I am not getting some text and background color at the place of those text messages.

Please check in the below code. Where "my company" and "company slogan" texts are there , there is problem and also backgroundcolr at that place is not coming.

U plz check with this code. (Main prob. is with subfolders only to which I am adding this master page)



<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="Head1" runat="server">

<title>VISAD 1.001 Vispro Technologies Pvt Ltd</title>

<link href="myfolder/StyleSheet.css" runat="server" rel="stylesheet" type="text/css" />



</head>
<body>

<form id="form1" runat="server">
<table width="780" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">



<tr>

<td align="left" valign="top" style="height: 188px"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="myfolder/h_bg.gif" >

<tr>

<td align="left" valign="top" style="width: 12%; height: 162px;"><img src="myfolder/VISPRO.JPG" runat="server" alt="" width="89" style="height: 96px"/></td>

<td width="79%" align="left" valign="top" style="height: 162px"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="30">&nbsp;</td>

</tr>

<tr>

<td><span class="style8"><a>my company</a></span></td>

</tr>

<tr>

<td><span class="style5">company slogan</span></td>

</tr>

</table></td>

<td width="9%" align="left" valign="top" style="height: 162px"><img src="myfolder/h_2.jpg" runat="server" alt="" width="303" height="162"/></td>

</tr>



<tr>

<td colspan="3" align="left" valign="top" bgcolor="#FFFFFF" style="height: 7px"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="7"/></td>

</tr>

</table></td>

</tr>

<tr>

<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><img src="myfolder/box_top.jpg" runat="server" width="761" height="10" alt=""/></td>

</tr>

<tr>

<td background="folder1/box_bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td align="center" valign="top" style="width: 190px"><table width="180" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><table width="100%" border="0" cellspacing="4" cellpadding="0">

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="HOME.aspx">Home</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="Lang2.aspx">Quick Search</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="#">Regular Search</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="#"> Maps </a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="#">About Us </a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2E5474" bgcolor="#2672A3" style="border-collapse:collapse">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="28" align="center"><img src="myfolder/bullet.gif" runat="server" width="14" height="14" alt=""/></td>

<td><span class="style1"><a href="#">Contact Us </a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td colspan="2" align="center" valign="middle">&nbsp;</td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle" bgcolor="#CAE7FB"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="1"/></td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="10"/></td>

</tr>

<tr>

<td align="center" valign="middle"><img src="myfolder/bullet1.gif" runat="server" width="15" height="15" alt=""/></td>

<td width="133"><span class="style2">&nbsp;Latest News</span></td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="10"/></td>

</tr>

</table></td>

</tr>

<tr>

<td><span class="style11">Thank you for your interest.We welcome you to our site.<br/>

</span><span class="style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;<a href="#" class="orange_link">more &raquo;</a></span></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td background="myfolder/dots.gif"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="2"/></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td><span class="style11">Our's is a growing level organization in the IT SECTOR. We are having four branches in chennai city. We are planning to open new one in Hyderabad also.<br/>

</span><span class="style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;<a href="#" class="orange_link"></a></span></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td background="folder1/dots.gif"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="2"/></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>



<tr>

<td><span class="style11">We are about to release one product which helps the users to gather information regarding various sectors like banking, health etc. <br/>

</span><span class="style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;<a href="#" class="orange_link"></a></span></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td colspan="2" align="center" valign="middle">&nbsp;</td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle" bgcolor="#CAE7FB"><img src="folder1/spacer.gif" runat="server" alt="" width="1" height="1"/></td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle"><img src="myfolder/spacer.gif" alt="" width="1" height="10"/></td>

</tr>

<tr>

<td align="center" valign="middle"><img src="myfolder/bullet1.gif" runat="server" width="15" height="15" alt=""/></td>

<td width="133"><span class="style2">&nbsp;Latest News</span></td>

</tr>

<tr>

<td colspan="2" align="center" valign="middle"><img src="myfolder/spacer.gif" runat="server" alt="" width="1" height="10"/></td>

</tr>

</table></td>

</tr>

<tr>

<td><div align="justify" class="style11">You can select the location through maps and get whatever information you require.</div></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

</table></td>

</tr>

</table></td>

<td align="center" valign="top"><table width="92%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="35" style="width: 537px"><span class="style10">Welcome To Our Company</span></td>

</tr>

<tr>

<td class="style3" style="height: 514px; width: 537px;">

<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">

</asp:contentplaceholder>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><img src="myfolder/box_bottom.jpg" runat="server" width="761" height="7" alt=""/></td>

</tr>

</table></td>

</tr>



</table>

<div>

&nbsp;</div>

<table>

<tr>

<td align="center" style="height: 30px; width: 760px;"><span class="style11">Copyright &copy; 2006 Company Name Inc. All rights reserved. </span></td>

</tr>

</table>

</form>



</body></html>
Dec 27 '07 #1
1 1408
mzmishra
390 Expert 256MB
Try to put <asp:lable> or any server side control in place of <span>
Dec 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Murphy | last post by:
I have read the articles by Paul Wilson regarding master pages, and apart from being totally confused I would like to clarify the following before investing any further time on researching these...
5
by: Murphy | last post by:
I have read the articles by Paul Wilson regarding master pages, and apart from being totally confused I would like to clarify the following before investing any further time on researching these...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
8
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet...
5
by: Brent | last post by:
Ok everyone i have dealing with this problem for a week and its starting to get on my nerve. I am pretty new to the asp.net world. I am not new to .Net only asp.net. So i hate a snag. right now im...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.