随笔分类 - net
摘要:#region 分页获取数据 /// /// 分页获取数据 /// /// 实体类 /// 获取列 /// 表名 /// 页码 /// 每页数据量 /// 查询条件 ...
阅读全文
摘要:string strPath = HttpContext.Current.Server.MapPath("/开放式DLL"); DirectoryInfo df = new DirectoryInfo(strPath); System....
阅读全文
摘要:1 string strPath = HttpContext.Current.Server.MapPath("/封闭式DLL");//获取链接库的虚拟路径的物理路径 2 DirectoryInfo df = new DirectoryInfo(strPath);...
阅读全文
摘要:1.打开文件,选择新建Asp.Net web服务。2.出现新建页面如下。using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;[WebSer...
阅读全文
摘要:1.选择3.5以上框架在新建项目中引用Dapper.dll。2.在后台写代码,代码写出来后感觉以前学的都白学了。3.using Dapper;using System;using System.Collections.Generic;using System.Configuration;using ...
阅读全文
摘要:1.首先打开VS2010(或者其他版本),创建Windows服务项目2.创建完成后切换到代码视图,代码中默认有OnStart和OnStop方法执行服务开启和服务停止执行的操作,下面代码是详细解释:注意选择的是系统时间,不是winform中的时间。usingSystem;usingSystem.IO;...
阅读全文
摘要:1.当希望方法返回多个值时,声明out方法很有用。这样使方法可以有选择地返回值。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 求数组最大最小值{ class...
阅读全文
摘要:当属性名中包括特殊字符如 “.”或“-”就不能使用“.”操作符了。操作符只能使用[ ]操作符为了统计网站的在线人数,我们可以在Global.asa文件中包含如下代码: 这样,网站的在线人数就被统计出来了,我们可以利用如下一个ASP页面(js.asp)将它显示出来: jsh.asp: 统计在线...
阅读全文
摘要:asp.net app 网站开发:http://www.cnblogs.com/TerryFeng/archive/2009/05/15/1457731.html在OPERA或M3GATE中设置编码为UTF-3即可显示中文.使用MS自带的移动控件可以很方便的建立网站,如LINK,COMMAND,LA...
阅读全文

浙公网安备 33010602011771号