我的评论

共3页: 1 2 3 下一页 
重典 2008-07-25 20:08
@逸之羊
这样。。。呵呵下面也没有什么好写的了
重典 2008-07-22 21:21
@Otis
下回写他强由他强明月照大江。。哈哈
重典 2008-07-22 21:19
@Otis
是啊,果然是学编程的,一下子就看出来了。。。
重典 2008-07-22 12:37
@沈阳阿瑞
多谢多谢
重典 2008-07-22 12:36
@傲然林
客气、客气
重典 2008-07-20 22:41
@www.www.www
请用工具连接
tfs或codeplex client
现在在服务器上的源码和release里的是不一样的
重典 2008-07-20 22:40
@CHSNS
我这里运行没有问题,可能是文件太乱了,我整理一下再把代码发来......不好意思了
重典 2008-07-20 09:33
@www.www.www
已经上传到Codeplex
重典 2008-07-20 09:32
@CHSNS
已经上传到Codeplex
重典 2008-07-19 10:02
@www.www.www
BIN中Monorail的文件都存在就应该没有问题
重典 2008-07-19 10:01
@Jacky, Zhang
这一点忘记说了SLN要开UserWebService里的ChAlumna.sln
重典 2008-07-18 21:00
@CHSNS
==我backup一个数据库过来
重典 2008-07-18 17:37
@Anders Liu
建个MVC的群组吧,呵呵.
重典 2008-07-16 12:03
@云の世界
可以,如果是COntroller不同用不同皮肤可以
/Views/ControlerName/red/index.aspx
/Views/ControlerName/blue/index.aspx各一套
如果想通用则
/Views/shared/blue/index.aspx
/Views/shared/red/index.aspx
就可以在各个控制器间通用了
重典 2008-07-16 10:34
@云の世界
其实我倒感觉还是挺灵活的,只是一开始在整个文件夹内四处存,现在收到了更小的一个文件夹里,感觉....
只是感觉吧,其实和原来的WEB方式都是都在一个文件夹里嘛
另外,你存成什么格式,他都可以自动找到,相对来说是更宽松了
重典 2008-07-16 10:28
@云の世界
皮肤嘛,一般更改CSS就可以了,如果是换模板的话可以
string[] themes=["blue","red"...];
public void index(string theme){
if(themes.Contains(theme))
RenderView(theme + "Index");
else
RenderView("Index");
}
类似这样.也可以
RenderView("/" + theme + "/Index");
即,/blue/index
这样管理比较方便
重典 2008-07-14 14:47
@云の世界
用户组件,
Html.RenderComponent方法
重典 2008-07-14 14:47
用户组件,
Html.RenderComponent方法
重典 2008-07-11 23:53
@构成
这篇文章是在vs2008推出以前发表的,当时的确很有用
不过之后就...同楼上了
重典 2008-07-10 20:19
@wfa
Html.ActionLink(action,controller,new{target="_blank"})
重典 2008-07-08 19:13
@shoucao
4.0/4.1不太一样,你可以按我说的具体编译一下
重典 2008-06-13 12:35
楼主的PP吗?还是其它人的^^
重典 2008-06-08 15:44
http://www.codeplex.com/OnlineJudge
C#...都支持
重典 2008-06-02 10:09
.net 自有ChineseLunisolarCalendar 可以让你的程序简化不少.
重典 2008-06-02 10:06
言之草草 路过BS一下
重典 2008-05-28 16:38
@McJeremy&Fan
用VS2005还无法编辑,您可以下个SharpDeveloper3.0来替代搞下

现在来说我感觉还是Monorail成熟一些,不过估计在.net 3.5 sp1中ASP.NET mvc会超过MONORAIL
重典 2008-05-28 12:41
重典 2008-04-30 14:56
@土星的狗狗
毕竟是PV版的,错误会有很多
但所幸是MVC有开放的源代码,而且还有MonoRail做比较,所以有些自定义功能就容易实现多了
重典 2008-04-30 14:31
@土星的狗狗
之前也认识到了这篇写的不太好,所以之后又补了一篇
在系列的第十篇的时候我做了个Filter的示例
http://www.cnblogs.com/chsword/archive/2008/03/archive/2008/03/archive/2008/03/15/1106884.html
重典 2008-04-27 23:24


孟兄我改了一下头图片,你看看能用上不?

重典 2008-04-26 12:55
@<∩扫地僧∩>
if you want use both Userid and ID,
youcan use QueryString
重典 2008-04-26 09:36
@<∩扫地僧∩>
{controller}/{action}/{userId}
虽然每一段都有名称如{controller} {action} {userId}
但Asp.net MVC识别时其实只是这样的识别
{1}/{2}/{3} 然后 将对应的字段映射到RouteValueDictionary

所以你写的这两个其实会冲突,而且也没有必要写2个

因为在URL上看不出任何区别

另:RouteTable的 匹配顺序是你添加的顺序,你先add的它先进行匹配

OVER
重典 2008-04-25 12:22
@Koy
谢谢支持
重典 2008-04-25 12:22
@小No
果然是这里也有问题,呵呵,还是兄弟你认真啊
重典 2008-04-14 10:21
@小No
是啊,这个更新速度很快,但问题也不少
重典 2008-04-03 11:58
@SoftWareBoy
按上面说明复制过去就好了,重新开启VS就在自定义模板里看到了
重典 2008-04-02 09:07
还有 41个,努力哦

你已经想起来的:
a, address, area, b, base, blockquote, body, br, button, caption, center, cite, dd, div, dl, fieldset, font, frame, frameset, h1, h2, h3, h4, h5, h6, head, hr, html, i, iframe, input, legend, li, link, meta, object, ol, s, script, span, strike, strong, style, table, tbody, td, textarea, title, tr, ul,
你没想起来的:
abbr, acronym, applet, basefont, bdo, big, code, col, colgroup, del, dfn, dir, dt, em, form, img, ins, isindex, kbd, label, map, menu, noframes, noscript, optgroup, option, p, param, pre, q, samp, select, small, sub, sup, tfoot, th, thead, tt, u, var,


你已经想起来的:
background, background-color, background-image, background-position, border, border-bottom, border-bottom-color, border-bottom-style, border-bottom-width, border-color, border-left, border-left-color, border-left-style, border-left-width, border-right, border-right-color, border-right-style, border-right-width, border-style, border-top, border-top-color, border-top-style, border-top-width, border-width, color, display, float, font, font-family, font-style, height, left, list-style, list-style-type, margin, margin-bottom, margin-left, margin-right, margin-top, max-height, max-width, min-height, min-width, padding, padding-bottom, padding-left, padding-right, padding-top, position, text-align, top, width, z-index,
你没想起来的:
azimuth, background-attachment, background-repeat, border-collapse, border-spacing, bottom, caption-side, clear, clip, content, counter-increment, counter-reset, cue, cue-after, cue-before, cursor, direction, elevation, empty-cells, font-size, font-size-adjust, font-stretch, font-variant, font-weight, letter-spacing, line-height, list-style-image, list-style-position, marker-offset, marks, orphans, outline, outline-color, outline-style, outline-width, overflow, page, page-break-after, page-break-before, page-break-inside, pause, pause-after, pause-before, pitch, pitch-range, play-during, quotes, richness, right, size, speak, speak-header, speak-numeral, speak-punctuation, speech-rate, stress, table-layout, text-decoration, text-indent, text-shadow, text-transform, unicode-bidi, vertical-align, visibility, voice-family, volume, white-space, widows, word-spacing,
重典 2008-03-26 14:03
下载了,用用看
重典 2008-03-22 19:09
@Jeffrey Zhao
您指的是类似于这样的吧
class HelperExtension {
public static StringHelper(this ViewPage v){
return new StringHelper();
}
}

我总是感觉使用方法实现不如属性的优美,呵呵
重典 2008-03-22 16:29
@Jeffrey Zhao
赵兄说的没错,这样做的确是进行扩展Helper的一种有效方法

但我感觉扩展方法有些时候毕竟有其不足
比如语义环境所限,我要自定义的Helper可能不是 Html Url Ajax中的任何一个,
如果我扩展到这些Helper中,会引起一些误会

还有就是Helper中有属性或集合,这时Extension就无能为力了

继承的确是不可取的一种方法 当然如果从组合优于继承的角度讲

在每一个ViewPage里写一个StringHelper的属性是最好的

但是这样做代码量也是不小的.

如果赵兄有更好的方法,希望一起研究^^
重典 2008-03-22 15:24
@SZW
是的方法是可以的,这里只是单纯的介绍自己写Helper的方法,例子是匆忙之间想到的,未必帖切
是可以用Extension来做到HtmlHelper中的
重典 2008-03-22 09:10
Routing与Abstractions并未发布,最好Routing也能一并开源了
重典 2008-03-18 23:36
看到博客时眼花了

看成内存和博客的整合了....汗
重典 2008-03-18 15:06
@隨風.NET
无论是更改一个或两个程序集
IIS都是要重新编译网站的
所以我感觉应该是没有区别

只有从可扩展性方面考虑才有分开的必要
重典 2008-03-18 12:23
@隨風.NET
可以的,不过没有必要吧
重典 2008-03-16 22:29
上一个版本还没有怎么看....就已经P2了,楼主的动作真是快啊
重典 2008-03-16 19:11
@隨風.NET
谢谢关心
重典 2008-03-16 19:08
不是,View不一定生Dll它有可能是解释的
共3页: 1 2 3 下一页