随笔分类 -  ASP.NET

C#调用存储过程返回值
摘要:因为一般都用T-SQL来执行数据库操作,偶尔现在转到用存储过程,竟然写不来调用过程的返回值了,查了很多资料,都不详细,或者没到点上,也许是我比较笨,呵呵。C# 源代码1///<summary>2///校验用户3///</summary>4///<paramname="user">用户信息</param>5///<returns></... 阅读全文
posted @ 2007-07-10 11:04 Achilles.NET 阅读(11782) 评论(1) 推荐(1)
GridView数据突出颜色显示解决办法
摘要:1publicvoidproductsGridView_RowDataBound(objectsender,2GridViewRowEventArgse)3{4 if(e.Row.RowType==DataControlRowType.DataRow)//检查是否为datarow5 {6  intnum=Convert.ToInt32(DataBinder.Eval(e.Row.DataItem,... 阅读全文
posted @ 2007-07-06 16:19 Achilles.NET 阅读(865) 评论(0) 推荐(0)
GridView中空记录不显示表头的解决方案[作者不祥]
摘要:在DataGrid中,我们可以把一个包含空记录的DataSet或DataTable绑定给DataGrid,这样,呈现时,DataGrid会把数据源中的字段定义以表头的形式显示出来。在GridView控件中,却不会显示,如果DataSet或DataTable是空记录。则GridView连表头都不显示。只能通过变通的方法实现,稍微有一些麻烦: public void BuildNoRecords(Gr... 阅读全文
posted @ 2007-07-06 16:11 Achilles.NET 阅读(1508) 评论(0) 推荐(0)
DataGrid分页
摘要:C#版本 DataGridPaging.aspx DataGridPaging.aspx.cs using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Data.OleDb;using Sys... 阅读全文
posted @ 2007-04-13 14:28 Achilles.NET 阅读(280) 评论(0) 推荐(0)
在VS2005 正确地创建、部署和维护由1.1迁移到ASP.NET 2.0 应用程序注意事项
摘要:在VS2005 正确地创建、部署和维护由1.1迁移到ASP.NET 2.0 应用程序注意事项 • 没有项目文件。 ASP.NET 1.x 应用程序与 2.0 应用程序之间最明显的差别就是后者没有项目文件(例如 *.vbproj 或 *.csproj)。在 1.x 应用程序中,项目文件包含生成设置、对外部程序集的引用以及项目中的文件列表。而在 2.0 应用程序中,不再需要版本设置和文件列... 阅读全文
posted @ 2007-01-17 15:53 Achilles.NET 阅读(187) 评论(0) 推荐(0)
在类文件中引用Server对象
摘要:using System.Web.HttpContext.Current.Server.MapPath 阅读全文
posted @ 2007-01-16 15:18 Achilles.NET 阅读(369) 评论(0) 推荐(0)