由买买提看人间百态

topics

全部话题 - 话题: mvc
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
G***o
发帖数: 5158
1
来自主题: DotNet版 - asp.net的webform和MVC有什么不同
http://weblogs.asp.net/shijuvarghese/archive/2008/07/09/asp-net
http://msdn.microsoft.com/en-us/library/dd381619.aspx
Strengths of ASP.NET Web Forms
The following list describes the strengths of the ASP.NET Web Forms model
for building Web applications.
Event model. Web Forms supports an event-driven programming style that
is like Windows applications. Many events are available, and they are
supported by hundreds of server controls.
State management. Web Forms reduces the complexity of m... 阅读全帖
z*******3
发帖数: 13709
2
来自主题: Programming版 - 请教有关java spring MVC的问题
弄spring,先忘掉mvc
先从spring core开始搞
把最基本的di搞明白
mvc你换个框架也都一样
struts什么也都是mvc
包括ror
pattern,只要都是oop,pattern都是通用的
不管你用啥语言
aop是另外一种paradigm,思维上跟oop有所差异
至于annotation,这个不过是你标注的一种方式而已
用xml也可以,spring在启动的时候会自动扫描这些metadata
然后构建自己的index
你先把spring core弄明白,用main把spring跑起来,把di弄明白
然后单独搞tomcat,把servlet和jsp这些搞明白,一般tomcat的开发pattern其实也是
mvc
最后再把spring mvc套上去,前两个不清不楚,直接上spring mvc很容易晕
s***o
发帖数: 2191
3

说............................说
任务完成,展得够开吗?:)
////
(ok. just my personal opinions)
* With jQuery, you need tight control over the HTML. This is how MVC is
designed for while Web forms generates the who-knows-what markups for
you automatically. In .NET 4, one good thing is that you can control the
clientID generated in Web Forms in a predictable way, which makes things
a lot easier.
* With jQuery, you have to write a lot of HTML markups manually in any
way. This eliminates one big advantage of we... 阅读全帖
c**t
发帖数: 2744
4
why mvc 不适合中大项目? how do you define 中大?

我感觉不是不熟, mvc 不适合中大项目.我们这里用mvc快两年了,开发和维护上还是比
不了web form.在用web form里一个个把月的项目到了mvc那里得半年,而且mvc 维护上
的困难还要大.
h*********o
发帖数: 62
5
来自主题: Java版 - JSF和MVC model 2的问题
Not all java mvc are mvc 2.
In java, mvc was first adopted by java swing (mvc1)
The success of mvc in swing made web framework builders try to port it to
their products. But the event flowing between model and view is really not
neccessary for most of these frameworks, so mvc2 emerged and was used in
almost all web frameworks, such as struts, spring mvc...
But when a new requirement called RAD (Rapid Application Development) came
out. Sun introduced JSF as their RAD product, but they realized th
r*****3
发帖数: 143
6
来自主题: Programming版 - Programming ASP.NET MVC 4
Title:Programming ASP.NET MVC 4
By: Jess Chadwick, Todd Snyder, Hrusikesh Panda
Publisher:O'Reilly Media
Ebook: September 2012
Pages: 492
Get up and running with ASP.NET MVC 4, and learn how to build modern server-
side web
applications. This guide helps you understand how the framework performs,
and shows you how to
use various features to solve many real-world development scenarios you’re
likely to face. In
the process, you’ll learn how to work with HTML, JavaScript, the Entity
Framework, and ... 阅读全帖
x*****p
发帖数: 1707
7
来自主题: JobHunting版 - MVC 是哪种design pattern
MVC is Model-View-Controller patter and is a typical J2EE pattern.
This pattern can also be used in other technology, such as Flex. Flex has
pure front-end MVC patterns such as Cairngorm MVC or Pure MVC.
m*********a
发帖数: 256
8
我只用过ASP.NET MVC, 据我了解,不少中小公司都用ASP.NET MVC。但,我发现,也有
一些公司用Spring 框架来开发web app。我也简单了解了一下Spring。
1. 感觉用Spring来开发web app的效率不如ASP.NET MVC
2. 微软的官网也很多ASP.NET MVC的tutorial,而我发现对于Spring, 好像这有这个网
站有官方的tutorial,但每个tutorial都比较简单,没有官方的tutorial告诉你如何开
发一个完整的web app基于Spring。
求各位大牛解答一下。谢谢
Update, 忘提了:
没错,微软要收license的钱,都我觉得Spring开发很慢,好多东西都要自己做,花的
开发成本大于买微软license的钱?
还有,我觉得Visual Studio比STS,Eclipse好用太多了?
S***k
发帖数: 370
9
我感觉不是不熟, mvc 不适合中大项目.我们这里用mvc快两年了,开发和维护上还是比
不了web form.在用web form里一个个把月的项目到了mvc那里得半年,而且mvc 维护上
的困难还要大.
n*w
发帖数: 3393
10
mvc pattern是出现很久的东西。最早出现在smalltalk里?
最近有帮人做一个side project。先用了asp.net mvc 4 single page application (
the built-in one - web api/knockout/...)。后来换了asp.net mvc 4(非spa)。觉
得做有些data entry的还是非spa的mvc的productivity高点。
t***a
发帖数: 416
11
我也没说mvc会dead,我的意思是说,很多情况用mvc不是最好
现在web框架,十个有9.5个是mvc。。。我凭啥能说mvc会dead...
T*******x
发帖数: 8565
12
来自主题: Programming版 - 谁给菜鸟科普一下?client side MVC
client side MVC + 后台rest 这个名词最近在本版看到好几次了。
本人菜鸟。知道点MVC,但不明白什么是client side mvc。
不是只有V是client side吗?C应该算server side吧?
而M更加是后台的了。不是这么划分的吗?
请问client side MVC到底是指什么?
l****z
发帖数: 29846
13
【 以下文字转载自 NewJersey 讨论区 】
发信人: kqxqx (陕东道大行台尚书令 | 攒钱买NSX), 信区: NewJersey
标 题: 老子今天被New Jersey MVC的脑残给彻底雷翻了 (转载)
发信站: BBS 未名空间站 (Wed Aug 28 16:36:08 2013, 美东)
发信人: kqxqx (陕东道大行台尚书令 | 攒钱买NSX), 信区: Automobile
标 题: 老子今天被New Jersey MVC的脑残给彻底雷翻了
发信站: BBS 未名空间站 (Wed Aug 28 16:32:37 2013, 美东)
从外州搬到NJ,要转title和registration,然后做emission test,都是正常的。可是
一跑到state-operated inspection stations,那个队伍长啊,那个移动得慢啊。。。
哥足足等了一个小时才轮到,一看3条lane才开了一条。这也就算了,现在都砍预算,
人比较少,哥理解。可是,同一条lane上明明有2台机器可以做,完全可以放到两条
lane,他们非要放到一条lane里面一... 阅读全帖
s*******j
发帖数: 109
14
朋友的NJ驾照年底到期,最近又搬家了,所以需要更新驾照。他的VISA已经过期,但
是有新的i-797可以证明合法的身份,请教各位NJ南部的Salem County或Gloucester
county,或者还有其他哪家MVC更靠谱点?麻烦推荐一下(有些MVC的人不太懂I-797这
个表,只看VISA,比较笨,所以想找个靠谱点,懂点的mvc)
谢谢了!
s*******j
发帖数: 109
15
朋友的NJ驾照年底到期,最近又搬家了,所以需要更新驾照。他的VISA已经过期,但
是有新的i-797可以证明合法的身份,请教各位NJ南部的Salem County或Gloucester
county,或者还有其他哪家MVC更靠谱点?麻烦推荐一下(有些MVC的人不太懂I-797这
个表,只看VISA,比较笨,所以想找个靠谱点,懂点的mvc)
谢谢了!
s***o
发帖数: 2191
16
available through 3/18, focusing on MVC 3 new features:
http://www.asp.net/mvc/pluralsight
http://weblogs.asp.net/scottgu/archive/2011/03/09/free-video-tr
net-mvc-3-features.aspx
s***o
发帖数: 2191
17
来自主题: DotNet版 - A question about MVC
It as easy as to put them in a class library project and refer to them
in your web application.
...
Well this is just the case for your Model. For controllers, there are
more works to do because you need to tell the framework where to find
the controllers. Check for following links for more details:
http://stackoverflow.com/questions/401376/asp-net-mvc-put-contr
into-a-separate-project
http://forums.asp.net/t/1610265.aspx/1?
How+to+Move+Controllers+Models+into+a+New+Project+Assembly+in+MVC+2+
ht... 阅读全帖
s***o
发帖数: 2191
18
来自主题: DotNet版 - Webforms vs. MVC
I would go with MVC for extensibility and maintainability. I think it's
worth the trouble of transformation in a long run.
If the domain logic is complex enough, MVC framework is also easier to apply
popular patterns such as TDD, DDD, DI, etc.
If you want to use the HTML5/CSS3 features for richer UI, MVC is the way to
go again.
The only thing I miss from Web Forms are those third-party controls.
W********n
发帖数: 254
19
来自主题: DotNet版 - mvc pros and cons
用mvc做项目有段时间了,列几个我自己感觉的pros and cons
-
1,自带的html helper太少,真的太少了!!还有那个SelectList很恶心,忘了具体问
题是什么来着,反正是很难用。
2,routing system过于复杂,非常需要简化一下。
3,razor和mvc绑的太死,在controller之外用起来很难,需要一大堆context,比如你
想用razor处理email template,当然这个现在有mvc mailer可以用。
+
1,data validation不错,没遇到什么解决不了的问题,attribute内可以检查其他
field,或者调用后台数据做validation。
2,默认的data binder很强,强到有点让人难以置信,扩展很容易,基本没费过什么神。
3,user auth也比较好用。
基本就这些啦。。
w*******7
发帖数: 188
20
MVC中的frontend对应的是client side 吗?
backend对应的是Server Side吗?
在stackoverflow提到了area的概念,是否Admin和Member都是属于backend(server
side)? 而site则是属于frontside (client side)?
http://stackoverflow.com/questions/11923149/asp-mvc-front-end-b
而在有的MVC的书里,又感觉M(MODEL)和C(Controller)是Server side,View则是
Client side,概念很混乱?希望大牛可以指点迷津!!!
d****g
发帖数: 1542
21
就是说我建这个project时即使没有设成mvc项目,我还是可以用mvc。不是不很明白,
如果我新建立一个page,传统aspx不是会生成两(3)个文件吗。可是在mvc中,如果你新
建一个view,这个不会有code behind的呀。
有没有详细点的文章可以推荐?
我不是伸手党,你们提供这个信息很有用,我想我会多做点research。
多谢。
W********n
发帖数: 254
22
来自主题: DotNet版 - MVC is trend?
各种各样的问题吧,你做过第一个mvc项目就明白了。mvc 4的改进还是有限,期待mvc
5.
t*******e
发帖数: 684
23
广义上来说应该是MVC。server side web tier里面也是MVC, 进一步来说,web tier,
biz tier, dao tier也是MVC。这个跟一层层的虚拟机也差不多。
c*********e
发帖数: 16335
24
api是搞web services时用的,比如get,post,put,delete之类的。
mvc是设计網站的。mvc的思路让c# developer的coding变了。以前的c# developer,先
要写.aspx网页,通过control比如submit button把信息传到.aspx.cs那边处理,然后
出来个动态网页。现在新的mvc 4模式里,没有.aspx,.aspx.cs文件了,用户的request
直接送给controller文件的methods,methods里面可以加view,这样生成动态网页。完全
变了。
n*w
发帖数: 3393
25
it should be asp.net web form in your context, if I understand jsf correctly
.
mvc is really old. and asp.net mvc has been released for several years. both
sun and ms were learning from others.
for the two flavor of ado.net, personally I prefer asp.net mvc

x****d
发帖数: 1766
26
来自主题: Java版 - Spring MVC vs Play 2
both action based/ request based
Spring MVC is not polyglot, Play!2 can use scala
spring dont have productivity boost features (you can use roo, but not
spring mvc itself) , play is meant to eliminate edit-build-deploy cycle, so
quick development, very good for prototyping.
When spring MVC came out, making coders happy is not important. Today, we
see it that making happy coder is high priority for a lot of frameworks. You
see play use the name happier.
that is the brick I throw for now...
s****s
发帖数: 628
27
你的解释不能完全同意.
1. html page 可以接收data, 比如用thymeleaf.
2. 我现在的问题是, 我的html page不需要从model那里拿到data. 这样也不能用在
spring mvc上吗?
但是相反,如果一个jsp page不需要从model那里拿到data, 它也能作为spring mvc的
view.
那问题就是: html page 能不能做为spring mvc的view吗?
我觉得应该跟viewresolver的设置有关,但读了半天,还没找到.

html
either.

发帖数: 1
28
ASP.NET MVC有硬伤,主要是Performance上。一般来讲,Node和Java的框架在同样的
Hardware上能够Handle更多的RPS。当然不完全是语言和框架决定的。.NET CORE性能有
改善但和Java比较快的比起来还是很慢的。小公司推荐ASP.NET MVC,比如一个小公司的
考勤系统,一秒钟最多几十个QPS,几天搭建一个系统,省钱。但大型网站就不能这么
考虑了,否则很容易挂掉。
c****n
发帖数: 15245
29
来自主题: PennySaver版 - 关于kohls的MVC卡
是的,之前卡都没有效期,我有咖啡色的和花花绿绿的还有mvc,只有mvc有过期时间
t*****n
发帖数: 1318
30
mvc不是办手续的么?还能年检?
那个单子就是换完title mvc给的呀
k***x
发帖数: 6799
31
【 以下文字转载自 Automobile 讨论区 】
发信人: kqxqx (陕东道大行台尚书令 | 攒钱买NSX), 信区: Automobile
标 题: 老子今天被New Jersey MVC的脑残给彻底雷翻了
发信站: BBS 未名空间站 (Wed Aug 28 16:32:37 2013, 美东)
从外州搬到NJ,要转title和registration,然后做emission test,都是正常的。可是
一跑到state-operated inspection stations,那个队伍长啊,那个移动得慢啊。。。
哥足足等了一个小时才轮到,一看3条lane才开了一条。这也就算了,现在都砍预算,
人比较少,哥理解。可是,同一条lane上明明有2台机器可以做,完全可以放到两条
lane,他们非要放到一条lane里面一前一后!有木有!后面的车先做完了,也只能等前
面一辆车完了再一块走有木有!后面几十辆车愤怒地排着队有木有!
NJ的MVC(别的州叫DMV)居然能脑残成这样,老夫今天彻底被雷翻了。。。没学过
queuing theory也就罢了,干的事情和常识都相违背的!
这个鸟州... 阅读全帖
w*********i
发帖数: 77
32
I called the Journal square MVC before and you can't take the knowledge test
there.
Within the Hudson county, you can only take the knowledge test at either
Bayonne or North Bergen MVC.
s*********a
发帖数: 2623
33
来自主题: BuildingWeb版 - 求教 简单易懂的MVC教程 没基础
大家能不能推荐一些比较好的MVC tutorial啊?我是会SAS,懂一点Microsoft sql
server。但是没学过html,asp这类的。。。最近在YouTube看了几个视频。对这类
controllers的表达方式表示很孟然:
-----create: db.people.add{Person}
db.SaveChanges{}
-----details: var person=db.people......
-----edit: db.entry{person}.state=system.data.enititystate.modified;
像我这样的除了基础的MVC,是不是基础的html和java都要去看?
谢谢大家
y********o
发帖数: 2565
34
来自主题: DotNet版 - How do you like ASP.NET MVC?
It is so cold here.
I have been doing some research about the ASP.NET MVC framework these days.
I am sure some of you may have checked it out as well. How do you like it?
It looks like that it is going to be the next generation of ASP.NET web dev
elopment. Believe it or not, to quite some people, the web form-based, event
-driven ASP.NET model is already classic. Now we have classic ASP and classi
c ASP.NET!
Personally, I don't mind this new ASP.NET MVC framework, but I really hate t
o intertwi
c**d
发帖数: 579
35
用惯了web forms,感觉mvc不给力啊,不知道是不是不熟的缘故,只用mvc写了些小项
S***k
发帖数: 370
36
我这里,designed UI pages 超过20,或者有10 个页面有超过3个的button/link,用mvc
就要快半年.其实也就是个小项目.我也很纳闷为什么会这样.不应该是程序员的原因,已
经解雇过两个了,换了别人也一样.
我用mvc做过UI简单的mobile项目,大概20个controller,连backend大概15天左右.可能
和UI复杂度有关.
s***o
发帖数: 2191
37
"Backend" is the place where you take care of the business logic and
infrastructure including data access, authentication, etc. They are usually
built as separate modules from your mvc Web project. (server side)
The functionalities of the "backend" are usually available through various "
services". (server side)
"Fontend" is more about UI, about how you present information to end users,
e.g., HTML markup (in the "view"s), CSS, JS modules related to the UI logic,
etc. (client side)
Consider a con... 阅读全帖
w*******7
发帖数: 188
38
You can use "Entity Framework" to create a model from a database, WPF and
Window Form can consume this model. I am not sure about Webform (I think it
could).
But for MVC, the reverse engineering model is used ObjectSet and Objectquery
, Is there any way to implement the model directly in MVC as Data Domain?
Or you have to use code first to build the data model and set connectting
string to direct connect to database?
k**n
发帖数: 3989
39
mvc与page form可以混用的(同一个project里)。。在后台page跳转就行。。
新的functions,pages用mvc..BL and Service层可以共享的。。
k**n
发帖数: 3989
40
我的做法是建一个mvc, 把原来的aspx与codebehind放到mvc 的content目录里。还需要
改些reference与link path,就可以运行了。
当然你原来的程序结构不好的话,还是很麻烦的.
还是单独建新project, 与旧project用相同中间层比较方便.
H*******g
发帖数: 6997
41
原来的结构是啥样的啊?譬如都是弄一个SOLUTION,里面放了N个不同的PROJECT,其中
只有一个是MVC的啊。这样其他都不用变化,就再新建个MVC的PROJECT不就好了么?
c*********e
发帖数: 16335
42
是的,view文件夹里的.vbhtml文件,你自己可以重新写的,建立controller的时候,
就选建立一個空的controller文件就可以了。mvc 4主要是用来code first把数据存入
table的,在数据的edit,create,delete之类非常有用。但是,如果要把数据用query从
database里过滤出来,做一個图表,还是要用到老的.aspx的方法。
老的.aspx的方法,是web form的方法。新的mvc 4,用的是razor engine.
d******y
发帖数: 244
43
来自主题: DotNet版 - MVC is trend?
Sorry for English inputs.
No chance to use MVC in work. How to learn and use MVC?
Any comments will be appreciated.
S****e
发帖数: 10596
44
来自主题: DotNet版 - MVC is trend?
我不懂,我只会 asp.net
曾经想学学MVC,后来没明白到底是干什么的,就算了
砍了楼上高人说的,好像明白MVC是干什么的了
c*********e
发帖数: 16335
45
来自主题: DotNet版 - MVC is trend?
mvc是主流。现在web services, web application都是用mvc结构。
k**n
发帖数: 3989
46
来自主题: DotNet版 - MVC is trend?
楼上貌似把MVC framwork提供的feature当成MVC本身了。。。
这样去interview 找不到工作的。。。
y*****3
发帖数: 451
47
来自主题: DotNet版 - 感觉MVC比web form好用多了
感觉MVC比web form好用多了,非常灵巧,只要会javascript和c#就非常容易上手,不
象web form里封装了那么多web controls,有那么多封装的代码,有时候比较迷糊人。
。。
MVC唯一缺点就是涉及的files太多,写一个小feature总是要一会儿打开这个文件,一
会儿打开那个文件,不象aspx文件里直接点code view就可以了。
k**n
发帖数: 3989
48
来自主题: DotNet版 - 感觉MVC比web form好用多了
unit test不是MVC的目的吧,只是附带的。
好的结构容易unit test,
反过来就可以用TDD来保证程序有好的结构。
MVC最大的优点的结构清晰,表现与逻辑分开, 各部分责任明确。
所以可以进行unit test啦。
m***n
发帖数: 220
49
小弟是mvc新手,用viewmodel,显示数据在view上。但viewmodel的property都是写死
的,现在有个表格,column需要是按用户选择的日期区间动态生成的07/2014,08/2014
,row是不同的用户,cell是用户按月的一个数量的统计。
以前这种动态column,我用老的webform + gridview,或reportviewer可以实现。但现
在用mvc,而且数据是json形式从web service上过来的,请问大侠,怎么动态
databinding到view上啊?
k**n
发帖数: 3989
50
你的数据来自service的json的话, 与mvc没有啥关系了。
如果正常mvc+js/json设计是你的json也是你的model, 通过ajax call 返回jsonresult
view,
然后用knockout绑定就行了。
那个header,
实在不行,自己写js把clumn的header的text改了就行了。
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)