asdfasfasdf

2007年5月23日

在string.Format中使用大括号

摘要: 在C#中,string.Format是一个非常方便的格式字符串的方法。比如为了输出Bill is a student.这个句子,就可以使用以下的方法:string studentName = "Bill";string.Format("{0} is a student.", studentName);这样就可以动态的来格式化字符串。可以发现,大括号是用来格式化字符串用的,也就是说,如果想格式化大括... 阅读全文

posted @ 2007-05-23 10:55 明达 阅读(1203) 评论(0) 推荐(0) 编辑

异常信息:Unrecognized configuration section 'connectionStrings'

摘要: 这个异常信息出现在我用虚拟目录访问一个ASP.NET网站时,把Web.Config删除掉,可能还会提示下面这个信息:Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following spe... 阅读全文

posted @ 2007-05-23 09:11 明达 阅读(1690) 评论(4) 推荐(0) 编辑

导航