Is it any point to use html directly instead of label

T

Tony Johansson

Hello!

Nobody seems to know this in the asp forum so I hope somebody might know
this here.

Instead of using a label control I can write the text directly in the web
page.

So is it any point to write text directly insted of using a label ?

//Tony
 
A

Arne Vajhøj

Nobody seems to know this in the asp forum so I hope somebody might know
this here.

Instead of using a label control I can write the text directly in the web
page.

So is it any point to write text directly insted of using a label ?

If it is fixed fixed then just have it as literal HTML.

If you may need to change it then have a label and set that
in code.

Never ever use Response.Write in ASP.NET!

Arne
 

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