asp.net 中如何得到GridView 中某一列的值的和
如题 下面是代码 可以按月份查找出来,什么把其中一列的值的总和求出来最后面的那个按钮还空着请各位大虾帮忙看看
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OleDb;
using System.Data.Common;
using System.Text;
public partial class admin_SelectIntoSingle : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
MyDataBind();
}
}
public void MyDataBind()
{
OleDbConnection MyConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("access.mdb"));
OleDbDataAdapter MyCommand = new OleDbDataAdapter(@"SELECT * from [Into Single] ", MyConnection);
DataSet ds = new DataSet();
&n
相关问答:
我在一个ASPX页面中用 <!-- #include file="top.asp"-->嵌套了一个asp页面,但在点击按钮提交表单的时候没有任何反应,是不是两个FORM的原因造成的,top.asp里面也有一个form,把嵌套去掉的话,运行 ......
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......
谁知道,最好是实例,测试过的更好,谢谢分享;
http://www.92dotnet.com/showtopic-428.aspxC# code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using Sy ......
RT。很多地址都打不开或不能下载了
有资源的朋友给个地址。。只要下载后是我想要的内容 50分献上!
谢谢!
沙发我先坐!
帮顶
帮顶
没听说过哦
JF
好像19没有的,不全。
好多集都不能下。。
......