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" > </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"> 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"> &nb sp; &nb sp; &nb sp; &nb sp; &nb sp; <a href="#" class="orange_l ink">more »</a></span></td>
</tr>
<tr>
<td> </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> </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"> &nb sp; &nb sp; &nb sp; &nb sp; &nb sp; <a href="#" class="orange_l ink"></a></span></td>
</tr>
<tr>
<td> </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> </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"> &nb sp; &nb sp; &nb sp; &nb sp; &nb sp; <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" > </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"> 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> </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>
</div>
<table>
<tr>
<td align="center" style="height: 30px; width: 760px;"><span class="style11" >Copyright © 2006 Company Name Inc. All rights reserved. </span></td>
</tr>
</table>
</form>
</body></html>