剃刀和webform控件 [英] razor and webform controls

查看:71
本文介绍了剃刀和webform控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,每个人

我一直在使用MVC 2,并且知道如何做我想做的事情但是我转向MVC 4并且当我面对Razor和cshtml文件时我知道我们不能对这些文件使用webform控件(例如我们的Datagrids,下拉菜单......等)。试图用剃刀创造一切,但我遇到了这个问题,我的问题是:



我在这里缺少什么,我们能否或不能使用网页表格控件在剃须刀(不是Html助手),如果是的话,你会给我一些好文章,因为我的谷歌搜索不满意吗?

hello everybody
well i''ve been using MVC 2 and got the idea how to do things i wanted to do but than i moved to MVC 4 and when i faced Razor and cshtml files i understood that we can''t use webform controls on those files (such us Datagrids,dropdown menus...etc). tried to to create everything using razor but i faced this issue and my question is:

What am i missing here,can we or can''t we use webforms controls in razor (not Html helper),if yes would you give me some good articles to read because my googling wasn''t satisfying?

推荐答案

你不能使用webforms控件当使用MVC / Razor时。



我会看一下以下链接,以便更好地了解MVC / Razor是什么。





MVC 3特定 [ ^ ]



ASP.Net引擎和Razor引擎之间的区别 - 问题n [ ^ ]



Razor介绍 [ ^ ]



MVVC 4 [ ^ ]



Web Forms vrs MVC [ ^ ]



语法与Web窗体中的代码比较,并在MVC中执行相同的操作 [ ^ ]



ASP.NET MVC框架的架构视图 [ ^ ]



希望这有助于您更好地理解MVC / Razor。
You cannot use webforms controls when using MVC/Razor.

I would take a look at the following links to get a better understanding of what MVC/Razor is.


MVC 3 Specific[^]

Difference between ASP.Net Engine and Razor Engine - Question[^]

Introducing Razor[^]

MVVC 4[^]

Web Forms vrs MVC[^]

Syntax Comparison with code in Web Forms and doing same in MVC[^]

An Architectural View of the ASP.NET MVC Framework[^]

Hopefully this helps with you obtain a better understanding MVC/Razor.


这篇关于剃刀和webform控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆