论文部分内容阅读
研究在ASP.NET页面中,自行绘制数据统计图的方法,不使用外部控件也可实现。首先,使用ADO.NET类,由Connection对象连接数据库,其他对象如DataAdapter和Command对象通过它与数据库通信,本文以SQL Server 2000为例创建数据库。其次,在Web窗体网页上绘图时,创建位图,继而建立引用该位图的Graphics对象用于绘制柱状图、折线图、显示文本的操作。
Research in ASP.NET pages, the method of drawing their own data charts, do not use external controls can be achieved. First of all, using the ADO.NET class, the Connection object is connected to the database, and other objects such as DataAdapter and Command objects are used to communicate with the database. This article uses SQL Server 2000 as an example to create a database. Second, when drawing on a web form webpage, a bitmap is created, and a Graphics object that refers to the bitmap is created for drawing a histogram, a line chart, and displaying text.