![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp.net
文章平均质量分 78
a57571737
这个作者很懒,什么都没留下…
展开
-
asp.net(c#)中String.Empty、NULL、"" 三者到底有啥区别和联系?
开门见山,首先看下面代码,你认为结果分别是什么? string str = string.Empty; string str1 = ""; string str2 = null; bool t = string.IsNullOrEmpty(str); bool t1 = string.IsNullOrEmpty(str1); bool t2 = string.IsNullOrEmpty(转载 2017-08-16 12:39:50 · 652 阅读 · 0 评论 -
asp.net mvc webform和razor的page基类区别
接触过asp.net mvc的都知道,在传统的webform的模式下,page页面的基类是这样声明的: "C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="ViewPage" %> 如果是partial view的话,则是这样声明的: "C#" Inherits="ViewUserContr转载 2017-08-15 13:05:20 · 422 阅读 · 0 评论