Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I'm trying to put an image in my <TR> tag. I can get it to work in the following way:

 

<TR bgColor="#330099" style="BACKGROUND-IMAGE: url(file:///C:\Inetpub\wwwroot\WebFiles\images\barForNotes.gif)">

 

This is fine on my testing machine but no good when I deploy.

 

I had a similar problem with putting a background screen on the page. But I was able to tie the HTML

 

<body id="Background" runat="server" MS_POSITIONING="GridLayout">

 

body tag with the code behind in this way.

 

protected System.Web.UI.HtmlControls.HtmlGenericControl Background;

 

private void Page_Load(object sender, System.EventArgs e)

{

 

String prefix = PathPrefix;

 

Background.Attributes.Add("BackGround", prefix + "/images/background.gif");

}

 

I need to be able to do the same for a <TR> tag. But I'm not sure if i still use the System.Web.UI.HtmlControls.HtmlGenericControl class. Any Ideas??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...