摘要: http://p2p.wrox.com/content/blogs/lee-dumond/how-let-users-change-their-email-address-thebeerhouse-starter-kit 阅读全文
posted @ 2011-09-22 14:27 jok141 阅读(136) 评论(0) 推荐(0)
摘要: 安装DNNDownload link: http://www.dotnetnuke.com/Resources/Downloads.aspxDownload "Install Package" instead clicking "User Install" as we dont need to set up database etc.1. Set up local IIS to run local DNNor 2. Open the package aswebsite: Create local databaseeg: dnn6, rundnn webs 阅读全文
posted @ 2011-09-21 10:43 jok141 阅读(351) 评论(0) 推荐(0)
摘要: Storing Connection Strings and Other Settings (web config)-Custom configuration sectionsConnection String<connectionStrings> <remove name="LocalSqlServer"/> <add name="LocalSqlServer" providerName="System.Data.SqlClient" connectionString="Data Source 阅读全文
posted @ 2011-08-25 12:59 jok141 阅读(188) 评论(0) 推荐(0)
摘要: Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=18728301:接口的定义极其应用 定义接口必须在声明的接口前使用interface关键字指定这是一个接口类型,然后在接口内声明所要的方法,例如 interface Itype{ void add(); void sub();.....}接口可以被一个以上的类继承,但是继承接口的类必须实现接口中所定义的所有方法,既然我们知道接口需要由外部类来实现其所有的方法,那么由此可知接口里的方法就必须为public类型的。下面我们就来通过一个简单的范例来看一下接口的声明极其实现范例一 代码如 阅读全文
posted @ 2011-08-25 11:40 jok141 阅读(380) 评论(0) 推荐(0)
摘要: 大家都容易把这两者搞混,我也一样,在听李建忠老师的设计模式时,他也老把抽象类说成接口,弄的我就更糊涂了,所以找了些网上的资料. 一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。 二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点: 1、不能实例化; 2、包含未实现的方法声明; 3、派生类必须实现未实现的方法,抽象类是抽象方法,接口 阅读全文
posted @ 2011-08-25 11:36 jok141 阅读(130) 评论(0) 推荐(0)
摘要: 1、C#接口的作用 :C#接口是一个让很多初学C#者容易迷糊的东西,用起来好像很简单,定义接口,里面包含方法,但没有方法具体实现的代码,然后在继承该接口的类里面要实现接口的所有方法的代码,但没有真正认识到接口的作用的时候就觉得用接口是多此一举,当然你这样想那是绝对绝对错误的,比尔盖茨的微软请的员工都是比盖茨还聪明的人,他们的C#能添这样的多足吗?!关于接口的作用,网上有一位就真的深入浅出给我们做了很好理解的分析。 我们定义一个接口public interface IBark{ void Bark();}再定义一个类,继承于IBark,并且必需实现其中的Bark()方法public class 阅读全文
posted @ 2011-08-25 11:35 jok141 阅读(208) 评论(0) 推荐(0)
摘要: http://msdn.microsoft.com/zh-cn/library/bb383977.aspx 阅读全文
posted @ 2011-08-25 11:29 jok141 阅读(127) 评论(0) 推荐(0)
摘要: 站点地图 Site mapwhy the Home node serves as root node for the others, and is not at the same level as the others. That would actually be an option, but I want the SiteMapPath control to always show the Home link, before the rest of the path that leads to the current page, so it must be the root node. I 阅读全文
posted @ 2011-08-24 12:59 jok141 阅读(181) 评论(0) 推荐(0)