Asp.net 中的整页刷新
我需要专家的建议。我将开发一个包含 google adsense 和其他广告的网站。请建议我应该选择经典的 Web 应用程序还是可以选择 MVC2/MVC3。因为我需要完整的页面刷新(因为adsense和其他广告)。我的网站将包含大量视频和图像,每天的点击量约为 200000 - 300000 次。
请提出建议,因为我愿意在 MVC2/MVC3 中开发它。但我不确定哪种类型(mvc 或 classic)将为我提供更多好处来获得全页面刷新。还请建议我应该选择 MVC2 或 MVC3
谢谢
I need experts advice. i am going to develop a website which will contains google adsense and other ads. please suggest me that should i go for classic web application or i can go with MVC2/MVC3. because i would require complete page refresh (because of adsense and other advertisement). My site will contain lots of videos and images and will get around 200000 - 300000 hits per day.
Please suggest because i am willing to develop it in MVC2/MVC3. but i am not sure which type( mvc or classic) will provide me more benefit to get full page refresh. and also please suggest that i should go for MVC2 or MVC3
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选择 ASP.NET MVC 3。您可以做任何您喜欢的刷新(完全、部分……),与经典的 WebForm 相比,您甚至可能对它们有更多的控制权(但这可能有点主观,只是个人意见) )。
Go for ASP.NET MVC 3. You can do whatever refreshes you like (full, partial, ...) and yuo will probably even have more control over them compared to classic WebForms (but that might be a little subjective and only personal opinion).
我推荐 MVC3,因为 Razor ViewEngine 的语法比 MVC2 的 ASPX 更具可读性(无论如何,您可以在 MVC3 中使用 ASPX)。
ASP.NET WebForms 无法让您轻松控制返回的 html,这使得跟踪变得非常困难。
I'd recommend MVC3 because the Syntax of the Razor ViewEngine is much more readable than MVC2's ASPX (you could use ASPX in MVC3 anyway).
ASP.NET WebForms won't give you the same amount of easy control over your returned html what makes tracking pretty difficult.