How to make rectangles on aweb page?

  • Thread starter Luis Esteban Valencia
  • Start date
L

Luis Esteban Valencia

Hello I want to make rectangles programatically on a webpage. How can I
achieve this?
 
G

Guest

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
 
L

Luis Esteban Valencia

I want on awebpage not on a winform, and I want to make them programatically
with asp.net not VML or HTML.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top