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!

HTML problem in render method

Status
Not open for further replies.

Eli20

Programmer
Oct 30, 2003
119
0
0
MX
hi, i have an asp.net application, and im building a user control.

Im overriding the render method so it displayes the way i want.

in the render method, i have a string varibale where im creating all my html code. a part of my code looks like this:

Code:
str += @"	<tr height=3>";
			str += @"		<td bgcolor=""9A3D02"" height=3>";
			str += @"			<img src=""../Images/menu_lat_esq01.gif"" width=""3"" height=""3"">";
			str += @"		</td>";
			str += @"       <td  background=""../Images/menu_lat_lpbp.jpg"" bgcolor=""DC9044"" height=3>";
			str += @"			<img src=""../Images/menu_lat_lp.gif"" width=""157"" height=""3"" border=1>";
			str += @"		</td>";
			str += @"       <td align=""right"" bgcolor=""DC9044"" height=3>";
			str += @"			<img src=""../Images/menu_lat_esq02.gif"" width=""3"" height=""3"">";
			str += @"		</td>";
			str += @"  </tr>";

and then im doing writer.Write(str)

it works fine, except that it seems that its not taking the "height" value for my images, and for my TR's, so it doesnt match my design.

this is not the first time it happens to me, and im a bit desperate. does anybody know why if i write the same code directly in the designer it works, but not when i try to send it to the writer variable inside the render method??

thank you very much

Eli
 
Are you showing any web control like checkbox or button control when you display you page ?

I have a similar kind of problem . I am using Response.Write to create html on the fly. I have some ASP.NET web controls in the html which is not getting displayed when I write to the page. This is all done in Page Load event.

Any ideas ?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top