How to make rectangles on aweb page?

  • Thread starter Thread starter Luis Esteban Valencia
  • Start date Start date
L

Luis Esteban Valencia

Hello I want to make rectangles programatically on a webpage. How can I
achieve this?
 
Rectangle code for a web page:

<table width=200 height=200 bgcolor="red"><tr><td> </td></tr></table>

Or you can do shape drawing using VML (only on IE 5+)

Or use Flash

Or use Smart Client .NET app

K
 
I want on awebpage not on a winform, and I want to make them programatically
with asp.net not VML or HTML.
 
Well, you know, ASP.NET uses HTML to "render" to the client in the web
browser so you have a couple of options:

1) Generate the HTML code to draw a rectangle.
For example (ASP.NET)
Response.Write("<table width=200 height=200 bgcolor=red><tr><td>
</td></tr></table>");


2) Create an image on the server and include an image tag reference to it in
your ASP.NET page.
For example (ASP.NET)
CreateRectImage(filename);
Response.Write("<img src=filename>");

K
 
Back
Top