html server control

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

Is it really any point to use the html server control when we can use the
web server control instead ?

//Tony
 
Is it really any point to use the html server control when we can use the
web server control instead ?

I think so - they serve very different purposes.

HTML controls is simple programmatic access to standard HTML tags.

Web controls are abstractions used when attempting to make web form
look similar to a desktop app.

So what you would choose depends on what you need.

That said then I do think that web controls are used a lot
more than HTML controls.

Arne
 
Arne Vajhøj said:
I think so - they serve very different purposes.

HTML controls is simple programmatic access to standard HTML tags.

Web controls are abstractions used when attempting to make web form
look similar to a desktop app.

So what you would choose depends on what you need.

That said then I do think that web controls are used a lot
more than HTML controls.

Arne

I can't find a single example when it would be better to use a html server
control then a web server control.

/Tony
 
I can't find a single example when it would be better to use a html server
control then a web server control.

I can think of a few reasons.

1) It is a very simple page and and it is not GUI programming but
really HTML programming where you just need to set a few things
programmatically. HTML controls due to its 1:1 mapping to HTML
is a more natural fit.

2) You need something that are in HTML controls but not in web controls.
I believe head, title and meta is in this category.

3) You don't like the way web controls map to HTML and potentially
different HTML for different browsers. This is a reason often quoted,
but I find it difficult to believe that is ever a good reason.

4) You are doing 1:1 conversion from ASP to ASP.NET. I know that is
a very bad idea.

Arne
 
Back
Top