Reputation: 4142
Can anyone please help me regarding design of aspx page.
When we design aspx GUI then we have few option for heading/ controls label like webcontrols/ html controls.
Is there any performance benefit we gain while using html controls for static values rather using webcontols like heading of form, controls label.
I think for multilingual website we cannot use html controls for static text. Isn't?
Upvotes: 1
Views: 3016
Reputation: 99957
Plain HTML tags have better performance than ASP controls. You can use static HTML for a multilingual web site but then you'd have to develop your own internationalization framework for it.
Upvotes: 3
Reputation: 55072
If it's multilingual and you want to make use of the .NET i18n system (which you should) then yes, you should use server-side controls for the text. But you can obviously just use literal
controls, and still control the formatting via <h2>
and whatever else. Up to you.
Upvotes: 2