HTML Controls vs. Web Controls

G

Guest

What are the advantages and disadvantages of using HTML Server Controls over
Web Server Controls and vice versa? Is there a clear cut consensus among
ASP.NET developers over which controls to use?

Thanks
 
S

Scott M.

Use HTML Server controls (HTML control with "runat=server" added) when
migrating non-.NET forms to .NET.
Use Web Forms controls for new UI development that needs server-side
programmatic functionality.
Use HTML controls when no server-side functionality is needed.
 
J

Jos

brian said:
What are the advantages and disadvantages of using HTML Server Controls over
Web Server Controls and vice versa? Is there a clear cut consensus among
ASP.NET developers over which controls to use?

In addition to Scott's post:
- Use HTML Server controls when you want full control over the HTML that is
rendered.
- Some HTML Server controls don't have a Web Server Control equivalent such
as the HtmlInputFile (upload) control
- HTML Server controls are slightly faster than Web controls.
 

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

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,733
Latest member
LonaMonzon

Latest Threads

Top