Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code Blocks Not Consistently Rendering

Status
Not open for further replies.

mavalon

Programmer
Apr 18, 2003
125
0
0
US
I have the following HTML in my ASPX page:

<table id="tblNewMembers" runat="server" width="98%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td background="<%= Request.ApplicationPath %>/images/admin/h_tab_bg.gif" height='25'>
<img src="<%= Request.ApplicationPath %>/images/c2.gif" width="5" height="1" alt="" border="0"><span id="UcGrid1_lblTitle" class="head" style="FONT-WEIGHT:bold">Companies</span></td>
</tr>
</table>

For some reason the TD BACKGROUND code block does not render, while the IMG SRC code block does.

I have the same problem throughout the entire project.

Any ideas?
 
What do you mean "does not render"? Do you mean the backgound is not set to the .gif file you are specifying?
 
yes, what I meant was that <%= Request.ApplicationPath %> was in the Html and should have rendered as "/VirtualDirectoryName".

Nevertheless, through experimentation i discovered that it was because the table itself had "runat=server". Removing Runat=Server Solved the problem. Instead, I am now nesting the table in another table and running it's parent table at server. This works.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top