易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 分页

///方法
 public static List<FeesItemInfo> selectAll()
        {
            List<FeesItemInfo> list = new List<FeesItemInfo>();
            string sql = "select * from FeesItem";
            SqlConnection cn;
            using (SqlDataReader sr = SQLHelper.ExecuteReader(out cn, CommandType.Text, sql))
            {
                while (sr.Read())
                {
                    FeesItemInfo info = new FeesItemInfo();
                    info.Id = Convert.ToInt32(sr["id"]);
                    info.Itemname = sr["itemname"].ToString();
                    list.Add(info);
                }
            }
            return list;
        }
///页面
 public int pageIndex
    {
        get
        {
            if (ViewState["pageIndex"]


相关文档:

asp.net调用bat文件

引用命名空间
using System.Diagnostics;
                string sPath = "d:\\test\\test.bat";
string sDict = "d:\\test\\";
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe ......

asp.net 利用WMI实现关机重启

我这是拿来别人用的,为了方便以后自己看吧,看对大家有帮忙吗
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace AppBLL
{
public class ShutDown
{
[StructLayout(LayoutKind.Sequential, Pack = 1)] ......

Asp.NET中常用的一些优化性能的方法

ASP.NET 的缓存机制相比ASP有很大的改进,本文档除对常用优化方法进行总结介绍外,强调了如何使用ASP.NET的缓存来获得最佳性能。
1:不要使用不必要的session
和ASP中一样,在不必要的时候不要使用Session。
可以针对整个应用程序或者页面禁用会话状态:
l         禁用页面的 ......

asp.net 上传控件的使用

注:asp.net默认允许上传为4096,即4MB
如果想要传更大的,要在web.config 的system.web节点里加上
 <httpRuntime maxRequestLength="10240" executionTimeout="3"/>这就可以最大允许传10MB了
第一种
1. 检查文件的扩展名:
2.
3. //判断是否有上传文件
4. if (Fil ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号