473,624 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with master pages, solution plz

1 New Member
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="Maste rPage.master.cs " Inherits="Maste rPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<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="#FFFFF F">



<tr>

<td align="left" valign="top" style="height: 188px"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="myf older/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">&nb sp;</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="#FFFFF F" 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"><t able 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="fol der1/box_bg.jpg"><ta ble 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="#2 E5474" bgcolor="#2672A 3" style="border-collapse:collap se">

<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="#2 E5474" bgcolor="#2672A 3" style="border-collapse:collap se">

<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.asp x">Quick Search</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

<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="#">Regula r Search</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

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

<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="#2 E5474" bgcolor="#2672A 3" style="border-collapse:collap se">

<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="#2 E5474" bgcolor="#2672A 3" style="border-collapse:collap se">

<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="#">Contac t Us </a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top"><t able 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="#CAE7F B"><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"><sp an 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;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<a href="#" class="orange_l ink">more &raquo;</a></span></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td background="myf older/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;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<a href="#" class="orange_l ink"></a></span></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td background="fol der1/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;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<a href="#" class="orange_l ink"></a></span></td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top"><t able 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="#CAE7F B"><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"><sp an 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"><t able 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:contentpla ceholder id="ContentPlac eHolder1" runat="server">

</asp:contentplac eholder>

</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 1434
mzmishra
390 Recognized Expert Contributor
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
290
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 concepts. Are master pages reliable or are they a buggy concept ? I understand master pages will be included in the next version of the framework ? Is there a reason not to use them presently ? Where can I obtain further documentation of the...
5
233
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 concepts. Are master pages reliable or are they a buggy concept ? I understand master pages will be included in the next version of the framework ? Is there a reason not to use them presently ? Where can I obtain further documentation of the...
11
12111
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 http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> This tags are part of the <headelement. Sample code that I have seen shows how to add metatags of the form:
8
6684
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 and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
5
1413
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 just doing some pretty simple pages. I just started getting into master pages when i keep getting this VERY irritating error: Error 1 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET...
0
8233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8474
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6108
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.