拾遗

逻辑判断

    IIf() 相当于其他语言的三目运算符[ ? : ]

 

字符串操作

    String.IsNullOrEmpty(Somestring.Trim())

    InStr(Somestring, Substring) 返回 Substring Somestring 的位置,不存在则返回0。

 

从配置文件读取appSetting

    引入System.Configuration,之后 Value = ConfigurationManager.AppSettings.Item("Key")

 

Server对象

    Server.Transfer(RedirectURL)

 

从Cache中取得的数据,强制转换

    AList=DirectCast(System.Web.HttpRuntime.Cache(CacheID), List(Of Integer))

 

posted @ 2013-12-26 19:06  朋友博客集  阅读(148)  评论(0编辑  收藏  举报