g_r_a_robinson Posted January 15, 2004 Posted January 15, 2004 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?? Quote
Moderators Robby Posted January 15, 2004 Moderators Posted January 15, 2004 Don't you mean a TD tag ? Quote Visit...Bassic Software
g_r_a_robinson Posted January 15, 2004 Author Posted January 15, 2004 well it works fine in the <tr> but even it was the <td> any ideas as to how i should wire it to my code behind? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.