开发者

Performance consideration - using Server controls ASP.NET

I just wanted to know if there is any performance variation when we use

<asp:TextBox runat="server" ></asp:TextBox>

instead of

<开发者_Python百科;input type=text />

Thanks


Definitely, <asp:TextBox runat="server" ></asp:TextBox> is a server side code and it invokes the server process with state management etc. It will take part in init till render and all server process. Keep it in mind that anything that is rendered onto a browser is pure HTML and the server side control will have to be rendered to equivallent HTML before it is shown.

So what I have said is the difference. But, the performance variation, the degree will be very low. But still if you do not need any special server side coding associated with the text box, it is advisable that you use the humble HTML only.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜