开发者

Razor : Where is Server side controls

I am new to MVC 3. When I generated a file called NewEmploy开发者_如何转开发ee.cshtml, I could see only HTML controls.

  1. Where is the server side controls ?
  2. If it does not support those controls, why should I go for Razor ?


MVC is a different way of building websites/applications to webforms.

You should have a look at some of the tutorials on www.asp.net to see the differences.

Answers: 1) There are no server side controls 2) There are other benefits to using Razor (or aspx) within the MVC model. UI development is simpler/separated and helps when building interfaces with jQuery, no fighting with webcontrols and microsoft ajax.

HTH

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜