分类目录归档:ASP.NET

新ASP.NET图表控件

原文地址:http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx

微软最近发布了一个很酷的新ASP.NET服务器控件,,可以免费用在ASP.NET 3.5中,促成基于浏览器的丰富图表场景:
下载免费的微软图表控件
下载VS 2008对图表控件的工具支持
下载微软图表控件例程
下载微软图表控件文档
访问微软图表控件论坛
安装完毕后,  控件会出现在工具箱的“数据”页上,可以作为标准的服务器控件轻易地声明在任何ASP.NET网页上:
按此在新窗口打开图片
支 持各种丰富的图表选项,包括pie(饼图), area(区域), range(范围), point(点), circular(圆 形), accumulation(累积), data distribution(数据分布), ajax interactive(AJAX交 互), doughnut(甜圈图)等等。你可以在控件的声明中静态地声明图表数据,或者也可以使用数据绑定动态地填充。在运行时,该服务器控件会生成一 个图片(譬如一个.PNG文件),是使用控件输出的元素在页面的客户端HTML中引用的。该服务器控件支持缓存图表图片的功能,还支持保存到硬盘上以在持 久性场景中使用的功能。它不要求安装其他的服务器软件,可以用于任何标准的ASP.NET网页上。  继续阅读

Dynamically Templated GridView

Dynamically Templated GridView with Edit, Delete and Insert Options

Introduction

In many situations we want to bind a fully, in-place operational GridView with a dynamically changing data source. This article shows how GridView can be templated programmatically at run time and how is it possible to do edit, insert and delete operations on it. Although just binding the GridView with some dynamically changing datatsource is a simple and straight job which does not need templated GridView, it cannot facilitate us with the aforementioned operations. To make the GridView simultaneously an operational one, we need to template it dynamically which also requires dynamically generated queries for corresponding operations according to the GridView’s data source. 继续阅读