摘要:用于从派生类调用基类的方法:要编写base.<methodNam>()class customerAccout{public virtual decimal calculateprice(){//implementation}}class goldAccount:customerAccout{public override decimal calculatprice(){return ...
阅读全文
摘要:把一个基类函数声明为virtual,就可以在任何派生类中重写了:class MyBaseClass{public virtual string VitualMethod(){return "virtual Method and defind in MyBaseClass";}}派生类重写基类的函数时,要使用override关键字显式声明:class MyDerivedClass:MyBassCla...
阅读全文
摘要:plot(x,y,s)s表示线条的着色和类型>> x=-5:0.1:5;>> y=sin(x);>> plot(x,y,'r');
阅读全文
摘要:1.use repeater[代码]2.use asppager[代码][代码]Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<divid="page"style="text-align:center;width:499px;"><...
阅读全文
摘要:asp:TemplateField
可以用来绑定需要的数据,提供链接等功能,这里用到一个上面一个缩略字符的方法
阅读全文
摘要:/// <summary> /// 缩略 ....数据 /// </summary> public static string SubStr(string sString, int nLength) { if (sString.Length <= nLength) { return sString; } string sNewStr = sString.Substri...
阅读全文
摘要:”不包含“DataItem”的定义,并且找不到可接受类型为“System.Web.UI.Page”的第一个参数的扩展方法“DataItem”(是否缺少 using 指令或
阅读全文