且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

原因从控件删除ID在页面上

更新时间:2023-12-06 09:44:40

如果你真的关心我的表现也许会少担心有关.NET控件ID的冗长(这是我的一个真正的宠物不喜欢)而更担心整体的回传模式。

If you're really concerned with performance I'd perhaps worry less about the verboseness of the .NET control IDs (which is a real pet dislike of mine) and worry more about the overall postback model.

整个发送状态到客户端,以便它可以将它张贴包到服务器是在这两个延迟和带宽方面完全不能胜任。

The whole send the state to the client so that it can post it pack to the server is woefully inefficient in both latency and bandwidth terms.

如果这是一个新项目,它可能是值得采用MVC模式,或者如果它存在尝试打开网页COM pression在IIS。

If it's a new project it's probably worth use MVC instead, or if it's existing try turning page compression on in IIS.