摘要: 1、DateTime 数字型System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒currentTime=System.DateTime.Now;1.2 取当前年int 年=currentTime.Year;1.3 取当前月int 月=currentTime.Month;1.4 取当前日int 日=currentTime.Da... 阅读全文
posted @ 2009-06-14 22:51 小开的一天 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 这里是从Dataset里的数据生成曲线图.我的Dataset是从表Sendrec里读取的数据,分别有Id,Sendid(订单号),Sendtime(记录时间),Sendnum(单位时间发送量/我这里是五分钟)几个字段过程如下:public void draw(Page page,DataSet ds,int Tnum){}其中page是用来传递引用这个过程的页面,这样让页面是JPG方式直接向客户端... 阅读全文
posted @ 2009-06-14 22:47 小开的一天 阅读(286) 评论(0) 推荐(0) 编辑
摘要: ASP.Net绘制柱状图和曲线图示例public class WebForm1 : System.Web.UI.Page{ private void Page_Load(object sender, System.EventArgs e) { //This is the interface to outer usage int widthValue = 800; int heightValue =... 阅读全文
posted @ 2009-06-14 22:46 小开的一天 阅读(977) 评论(0) 推荐(1) 编辑
摘要: usingSystem;usingSystem.Collections;//注意usingCollectionsusingSystem.Collections.Generic;usingSystem.Text;namespaceCollectionTest{classProgram{staticvoidMain(string[]args){WordCollectionwords=newWordCo... 阅读全文
posted @ 2009-06-14 22:37 小开的一天 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 关于值类型和引用类型的区别网上很多,可参考http://blog.yesky.com/Blog/os586/archive/2005/06/07/141356.html今天稍微总结一下,概念性的东西大体一说,C#的所有值类型均隐式派生自System.ValueType,需要注意System.ValueType确是一种引用类型,并且继承System.Object,而所有的引用类型均继承System.... 阅读全文
posted @ 2009-06-14 22:30 小开的一天 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 对于javascript大家大部分时间用来做效果,但却忽视了最基础的东西,当大家把javascript基本功学扎实了,我认为对以后写出漂亮的js代码有很大的帮助,今天就总结下我对javascript关于面向对象方面的理解首先总结一下javascript中的"类",第一种算是比较灵活的方式了,成为工厂定义方式var obj=new Object;obj.color='red';obj.dodo=fu... 阅读全文
posted @ 2009-06-14 22:26 小开的一天 阅读(333) 评论(1) 推荐(0) 编辑
摘要: usingSystem;2 usingSystem.Collections;3usingSystem.Configuration;4usingSystem.Data;5usingSystem.Linq;6usingSystem.Web;7usingSystem.Web.Security;8usingSystem.Web.UI;9usingSystem.Web.UI.HtmlControls;10u... 阅读全文
posted @ 2009-06-14 18:50 小开的一天 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event.ret... 阅读全文
posted @ 2009-06-14 18:46 小开的一天 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 下列语句部分是Mssql语句,不可以在access中使用。   SQL分类:  DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)   DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)   DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)  首先,简要介绍基础语句:  1、说明... 阅读全文
posted @ 2009-06-14 18:43 小开的一天 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 建表:在查询分析器里运行:CREATE TABLE [Test] ([id] [int] IDENTITY (1, 1) NOT NULL ,[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,[subject] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,[Source] [numeri... 阅读全文
posted @ 2009-06-14 11:12 小开的一天 阅读(878) 评论(0) 推荐(1) 编辑