![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Asp.net
文章平均质量分 55
lewway
my name is lewway,
展开
-
高效分页存储过程
create proc GetPageData@pi int,//当前页码@ps int//每页显示几条数据asbeginselect * from ( select ROW_NUMBER() over(order by id) as RNum,* from userinfo) as tempwhere RNum>(@pi-1)*@ps and RNum=@pi*原创 2012-08-31 09:19:05 · 258 阅读 · 0 评论 -
为什么ViewState["value"]的取值会为空?
今天在做分页时当我每点击一页码时,都要去数据库查总页数, 我就想用ViewState[] 来保存总页码数 if(ViewState["countPage"]==null){ int countpage = userinfobll.GetCountPage(); ViewState["countPage"]==countpage;}发现其实每当我点进来后Vie原创 2012-08-24 16:28:06 · 1774 阅读 · 0 评论 -
.net 操作IIS
using System;using System.DirectoryServices;using System.Collections;namespace WayControls.IIS{ /// /// IISWebServer的状态 /// public enum IISServerState { ///原创 2013-03-25 10:18:41 · 716 阅读 · 0 评论 -
google map api v3点击地图获取经纬度地址,设置地图显示经纬度地址
使用google map api v3案例:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> http://maps.google.com/maps/api/js?sensor=false" mce_src="http://maps.goo原创 2012-11-14 17:51:35 · 5367 阅读 · 1 评论 -
iis 上不能下載 .exe dll com 文件提示404找不到頁面
最近很多客户使用IIS服务器,提示exe安装文件无法下载,部分服务器或主机可能无法下载。第一、如果是自己服务器或VPS请按如下设置:1.设置MIME,让IIS支持更多文件类型,如果MIME类型中已经有.exe,这一步可以跳过。打开IIS,选中服务器,点右键,属性里有MIME类型添加扩展名:.exe类型:application/octet-stream按照上面的办法操作,重启原创 2013-03-29 16:13:47 · 2749 阅读 · 0 评论 -
在IIS Excel問題
Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine主要原因是微软未提供在'Microsoft.Jet.OLEDB.4.0' 的64位版本,因此你的应用程序只能在32位兼容模式下运行,IIS下调整相应设置即可解决,如下图:IIS下,应用程序池,选择目标项目程序所使用的程序池,通常为Default Po原创 2013-09-03 17:25:25 · 495 阅读 · 0 评论 -
大数据导出Excel方法
#region DataSet匯出Excel 文本方法支持大数据 protected void DsTotxt(DataSet ds) { string guid = Guid.NewGuid().ToString(); string path = Server.MapPath(string.Format("~原创 2013-09-11 15:50:44 · 930 阅读 · 0 评论 -
VS快捷键教程
删除或剪切一行(Ctrl + X)格式化整个文档(Ctrl + K, Ctrl + D)智能感知(Ctrl + J)折叠所有方法 (Ctrl+M,Ctrl+O)折叠或者展开当前方法(Ctrl+M,Ctrl+M)查看函数参数 (Ctrl+K, Ctrl+P)注释(Ctrl+K, Ctrl+C)在光标下面插入空行(Ctrl+Shift+Enter)插入代码段(Ctrl+转载 2013-12-24 14:03:32 · 500 阅读 · 0 评论 -
检索com类工厂中CLSID为{0002E55D-0000-0000-C000-000000000046}的组件失败,原因是出现以下错误:8004015
具体解决方法如下: 首先電腦的裝owc11.exe1:在服务器上安装office的Excel软件.2:在"开始"->"运行"中输入dcomcnfg.exe启动"组件服务"3:依次双击"组件服务"->"计算机"->"我的电脑"->"DCOM配置"4:在"DCOM配置"中找到"Microsoft Excel 应用程序",在它上面点击右键,然后点击"属性",弹出"Micros转载 2014-03-26 16:48:39 · 1197 阅读 · 0 评论