Loading

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页
摘要: .NET Framework 提供了两种访问某类型的元数据的方式:通过 System.Reflection 命名空间中提供的反射 API,以及通过 TypeDescriptor 类。反射是可用于所有类型的通用机制,因为它是基于根 Object 类的 GetType 方法建立的。反射为某个类型返回的信息不可扩展,因为编译了目标类型后就不能对其进行修改。有关更多信息,请参见 反射 中的主题。 ... 阅读全文
posted @ 2013-03-10 11:18 .net's 阅读(433) 评论(1) 推荐(1) 编辑
摘要: developers to pay attention to URLs and provides the following guidelines for high-quality URLs.You should provide:A domain name that is easy to remember and easy to spellShort URLsEasy-to-type URLsURLs that refl ect the site structureURLs that are hackable to allow users to move to higher levels of 阅读全文
posted @ 2013-03-09 10:34 .net's 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 1, 在web属性中,点击创建“Create Virtual Directory”.2, 在IIS中将显示创建好的虚拟目录注意:如果虚拟目录层数大于1,则需要在C:\inetpub\wwwroot中手动创建对应的子目录。 阅读全文
posted @ 2013-02-21 16:47 .net's 阅读(643) 评论(0) 推荐(0) 编辑
摘要: change Identity with LocalSystemthan you can connection string as the following in web.config:<add name="conn" connectionString="Data Source=.;Initial Catalog=dbname;Integrated Security=True" providerName="System.Data.SqlClient" /> 阅读全文
posted @ 2013-02-21 16:21 .net's 阅读(390) 评论(0) 推荐(0) 编辑
摘要: After a bit of hiatus, I am long overdue to get some code up on this blog. To give myself some direction, this is the start of an informal series that will attempt to shed some light on the functional programming ideas that have been sneaking into the C# world. I've got a lot that I want to writ 阅读全文
posted @ 2013-02-19 20:19 .net's 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 1,元素命名:应该根据“它们是什么”来为元素命名,而不应该根据“它们的外观如何”来命名。2,Box modelPadding is applied around the content area. If you add a background to an element, it will be applied to the area formed by the content and padding.In CSS, width and height refer to the width and height of the conte... 阅读全文
posted @ 2013-02-18 15:16 .net's 阅读(304) 评论(0) 推荐(0) 编辑
摘要: When you set any of the font properties, the values flow through to nested objects. For example, if you set the FontFamily property for the top-level window, every control in that window gets the same FontFamily value (unless the control explicitly sets a different font). This works because the font 阅读全文
posted @ 2013-02-16 21:40 .net's 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 指示调试器逐句通过代码,而不是进入并单步执行代码。此类不能被继承。(MSND)解释:当进行调试的时候,当类、结构、构造器及方法(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method)使用该attribute装饰后,单步调试不会进入以上所列的代码体内。作用:当调试时,不希望进入某个方法体内单步执行代码时,此attribute非常有用,可以提高调试代码的效率。 阅读全文
posted @ 2012-12-29 21:27 .net's 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: One of the most annoying things in developing web pages is handling the "Enter key" for form submission. Enter key has been the favourite way users like to submit forms. Though we provide Buttons to click on, the easiest and intuitive way is that, I can enter some text, make some changes a 阅读全文
posted @ 2012-12-27 16:34 .net's 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 针对接口编程,而不是针对实现编程。 “针对实现编程” Dog d = new Dog( ); d.bark( ); 声明变量“ d ” 为D o g 类型( 是 Animal的具体实现),会造成我们必 须针对具体实现编码。 “针对接口/超类型编程” Animal animal = new Dog( ); animal.makeSound( ); 我们知... 阅读全文
posted @ 2012-11-28 15:06 .net's 阅读(288) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页