摘要:
我是在本地32位操作系统+vs2010+office2007做创建并下载Excel,ppt文件的操作没有问题,发布到64位系统的服务器上报错,最开始报错::1:Retrieving the COM class factory for component with CLSID {91493441-5A... 阅读全文
随笔档案-2014年08月
asp.net 如何改变GridView搜索出来关键字的颜色?就像百度似的,我获得的是一个集合,改变集合中关键字的集合
2014-08-20 16:56 by 悠悠鑫宝, 258 阅读, 收藏,
摘要:
输入“产量”查询,将“产量”拆分,产、量string strColNameCnDt = string.Empty; for (int j = 0; j 1) { str = strKeyWordCopy.Substring(0, 1);拆分 strKeyWordCopy = strKeyWordC... 阅读全文
.NET Framework
2014-08-15 17:26 by 悠悠鑫宝, 334 阅读, 收藏,
摘要:
.NET Framework是一个框架,包括CLR(公共语言运行时)和.NET 基本类库, 是用.NET语言编写的程序运行的基本支撑。即要想在某台计算机上运行.NET编写的程序,必须事先要安装.NET Framework。你可以这么理解。就是一个中间件。这个中间件将.NET高级语言转成机器语言。没有... 阅读全文
.net中div置于顶层+iframe
2014-08-15 14:31 by 悠悠鑫宝, 332 阅读, 收藏,
摘要:
aspx代码: ………… ………… 正在下载报表,请稍候...... js: function showDownPPT() { // debugger; $("#Btn_DownPPT").click(); document.getElementById('divContent... 阅读全文
.net 判断日期格式yyyy-MM-dd hh:MM:ss的正则表达式
2014-08-14 15:49 by 悠悠鑫宝, 2786 阅读, 收藏,
摘要:
加上引用: using System.Text.RegularExpressions; /// /// 检查字符串是否是日期格式 /// /// 2011-5-8 8:08:05 /// public static string check(string s) { if (Regex.I... 阅读全文
oracle全文检索
2014-08-13 14:05 by 悠悠鑫宝, 597 阅读, 收藏,
摘要:
转载自:http://blog.sina.com.cn/s/blog_613fee860100yhyz.html1.需要对ctxsys用户解锁,以获得ctx_ddl包的操作权。进入system用户,输入如下命令,解锁ctxsys用户alter user ctxsys account unlock;然... 阅读全文
oracle 全文检索
2014-08-13 11:35 by 悠悠鑫宝, 1025 阅读, 收藏,
摘要:
一、使用 sys 用户登录oracle(1)运行—cmd—sqlplus — sys/密码 @连接字符 as sysdba二、授权1、grant ctxapp to 全文检索使用用户;2、grant execute on ctx_dll to 全文检索使用用户;3、全文检索使用用户 登录oracle... 阅读全文
调用具体webservice方法时时报错误:请求因 HTTP 状态 503 失败: Service Temporarily Unavailable
2014-08-12 10:19 by 悠悠鑫宝, 9775 阅读, 收藏,
摘要:
添加web引用会在相应项目的app.cofig文件中产生如下代码: ……………… http://10.27.213.172:8080/PetroChinaService/PetroChina http://10.88.248.111:88/dm/cxf-services/ReportSS... 阅读全文
多种下载文件方式 Response.BinaryWrite(byte[] DocContent);Response.WriteFile(System.IO.FileInfo DownloadFile .FullName);Response.Write(string html2Excel);
2014-08-07 15:47 by 悠悠鑫宝, 1286 阅读, 收藏,
摘要:
通过html给xls赋值,并下载xls文件一、this.Response.Write(sw.ToString());System.IO.StringWriter sw = new System.IO.StringWriter(); this.Response.Clear(); string strF... 阅读全文
.net文件下载方法汇总
2014-08-07 10:47 by 悠悠鑫宝, 324 阅读, 收藏,
摘要:
转载自:http://blog.sina.com.cn/s/blog_680942070101ahsq.html//TransmitFile实现下载protected void Button1_Click1(object sender, EventArgs e){string strFileName... 阅读全文
C#远程获取/读取网页内容
2014-08-07 10:45 by 悠悠鑫宝, 1493 阅读, 收藏,
摘要:
转载自 :http://blog.csdn.net/gisfarmer/article/details/2836904usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Net;usingSystem.IO... 阅读全文
asp.net从服务器(指定文件夹)下载任意格式的文件到本地
2014-08-07 10:43 by 悠悠鑫宝, 1722 阅读, 收藏,
摘要:
一、我需要从服务器下载ppt文件到本地protected void Btn_DownPPT_Click(object sender, EventArgs e) { DBService svc = new DBService(); svc.DownPpts(); string strFileName ... 阅读全文
Sys.WebForms.PageRequestManagerParserErrorException:无法分析从服务器收到的消息
2014-08-07 10:29 by 悠悠鑫宝, 235 阅读, 收藏,
摘要:
我引起此原因的功能如下:在aspx页面添加按钮JS方法:function downPPT() {$("#Btn_DownPPT").click(); } ………… ………… ………… aspx.cs方法protected void Btn_DownPPT_Click(object... 阅读全文