Chinaunix首页 | 论坛 | 博客
  • 博客访问: 483371
  • 博文数量: 112
  • 博客积分: 5696
  • 博客等级: 大校
  • 技术积分: 1720
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-17 09:58
文章分类

全部博文(112)

文章存档

2011年(22)

2010年(28)

2009年(21)

2008年(41)

分类: WINDOWS

2010-08-07 20:47:20

nNote The syntax surrounding Html.RenderPartial() is a little different from that surrounding
most other HTML helpers. Look closely, and you’ll see that it’s surrounded with <% ...; %> rather than
<%= ... %>. The difference is that Html.RenderPartial() doesn’t return an HTML string, as most other
HTML helpers do. Instead, it emits text directly to the response stream, so it’s a complete line of C# code
rather than a C# expression to be evaluated. That’s because it might in theory be used to produce giant
amounts of data, and it wouldn’t be efficient to buffer all that data in memory as a string.
阅读(677) | 评论(0) | 转发(0) |
0

上一篇:jquery 无刷新多选框删除用户

下一篇:MvC(1)

给主人留下些什么吧!~~