摘要: 在 GridView1_RowCommand中获取主键的值:  protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)  {  int OrderId = Convert.ToInt32(GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)].... 阅读全文
posted @ 2010-10-19 15:51 偶,小菜 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Request.ServerVariables["Url"] 返回服务器地址Request.ServerVariables["Path_Info"] 客户端提供的路径信息Request.ServerVariables["Appl_Physical_Path"] 与应用程序元数据库路径相应的物理路径Request.ServerVariables["Path_Translated"] 通过由虚拟至物理... 阅读全文
posted @ 2010-10-12 10:06 偶,小菜 阅读(546) 评论(0) 推荐(0) 编辑
摘要: ASP.NET Cache[转]原文地址:http://www.codeproject.com/KB/aspnet/AspDotNetCache.aspx缓存是在内存中存储很耗时创建的数据的一项技术,也是ASP.NET一个重要特性。例如,你可以缓存那些耗时的复杂查询出来的数据,之后的请求不必再从数据库中取数,直接从缓存中取。通过缓存,可以大大提高应该程序的性能。主要有两种缓存类型:1.输出缓存2.... 阅读全文
posted @ 2010-09-29 13:29 偶,小菜 阅读(315) 评论(2) 推荐(1) 编辑