开发者

How decide between <asp:label> or <h2></h2>

开发者 https://www.devze.com 2022-12-15 23:05 出处:网络
Can anyone please help me regarding design of aspx page. When we design aspx GUI then we h开发者_StackOverflow社区ave few option for heading/ controls label like webcontrols/ html controls.

Can anyone please help me regarding design of aspx page.

When we design aspx GUI then we h开发者_StackOverflow社区ave 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消