摘要:异常详细信息: System.Runtime.InteropServices.COMException: 检索 COM 类工厂中 CLSID 为 {0002E510-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154。这个问题困恼我好几天了,今天终于解决。开始我在网上左百度右google,都没搜到最终的解决方案,今天我把解决方案贴出来,以供大家分享!网上有些是报80070005错误的,跟我这个80040154错误还不一样。80070005错误是没有权限,具体解决方案网络上一大堆,我就不在描述了,而80040154错误是没有注册类别,需
        
阅读全文
 
        
     
    
        
        
摘要:string.Join("','", (string[])(BGNos.ToArray(typeof(string))))
        
阅读全文
 
        
     
    
        
        
摘要:asp.net后台显示确认框:System.Windows.Forms.DialogResult key = MessageBox.Show("该公文已通过审核,确定删除吗?", "警告", MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Warning); if (key == DialogResult.Yes) { bool result = bll.Delete(Convert.ToInt32(...
        
阅读全文
 
        
     
    
        
        
摘要:private byte[] StreamToByte(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); stream.Seek(0, SeekOrigin.Begin); return bytes; } /// <summary> /// 文件转换为数据流 /// </summary> ...
        
阅读全文
 
        
     
    
        
        
摘要:protected void Button1_Click(object sender, EventArgs e) { /* 微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400mb的文件时导致Aspnet_wp.exe进程回收而无法成功下载的问题。 代码如下: */ Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "at
        
阅读全文
 
        
     
    
        
        
摘要:第七章 二次开发SDK7.0 开发与实施部署7.0.1什么情况下需要二次开发? 工作流引擎执行在web前台程序“底座”上,如果你不需要底座程序的支持,您需要调用.dll接口完成您的功能。就需要把bp.wfv4.dll引用到您的解决方案里面。7.0.2二次开发前要准备的工作。 1,要把基础的web.config 中相关的配置放在您的,解决方案里。 2,引用提供给您的bp.en30.dll, bp.wfv4.dll. 到您的解决方案。7.0.3 二次开发的SDK。系统包含如下3个类库。类库名称作用BP.En30.dll底层的类库,与数据库交互,与xml文件访问。。。通用方法,它是一个基...
        
阅读全文
 
        
     
    
        
        
摘要:/// <summary> /// 将 Stream 写入文件 /// </summary> public void StreamToFile(Stream stream, string fileName) { //isAlreadyRunning(); //========= FileStream fs = null; BinaryWriter bw = null; try { ...
        
阅读全文
 
        
     
    
        
        
摘要:#region 直接删除指定目录下的所有文件及文件夹(保留目录) /// <summary> /// 直接删除指定目录下的所有文件及文件夹(保留目录) /// </summary> /// <param name="strPath">文件夹路径</param> /// <returns>执行结果</returns> public bool DeleteDir(string strPath) { try { // 清除空格 ...
        
阅读全文
 
        
     
    
        
        
摘要:private byte[] StreamToByte(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); stream.Seek(0, SeekOrigin.Begin); return bytes; } private Stream ByteToSteam(byte[] bytes) { ...
        
阅读全文
 
        
     
    
        
        
摘要:/// <summary> /// 将DataTable转为二维数组 /// </summary> /// <param name="dt"></param> /// <returns></returns> private string[,] DataTableToArray(DataTable dt) { int i = 0; int rowsCount = dt.Rows.Count; int colsCount = dt.Co...
        
阅读全文
 
        
     
    
        
        
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#region 获取页面地址 /// <summary> /// 获取页面地址 /// </summary> /// <returns></returns> public static string GetUrl() { string strTemp = "http://"; if (System.Web.HttpContext
        
阅读全文
 
        
     
    
        
        
摘要:文件类型验证 protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { fileExt = System.IO.Path.GetExtension(FileUpload1.FileName); if (fileExt == ".jpg" || fileExt == ".gif") { try { FileUpload1.SaveAs(Server.MapPath("upload") + "\\" + F
        
阅读全文
 
        
     
    
        
        
摘要:SQL查询Excel文件的语句:SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Data Source=D:\hxl\gxjt\gxjt\pay\excel\list.xls;Extended Properties=Excel 8.0; HDR=YES; IMEX=1')...Sheet1$注:如遇到如下问题:1)、已拒绝对 OLE DB 访问接口 'Microsoft.Jet.OLEDB.4.0' 的即席访问。必须通过链接服务器来访问此访问接口。 答:登录数据库用户必须具有sa权限
        
阅读全文
 
        
     
    
        
        
摘要:1. 官网:http://www.coolite.com/ 例子:http://examples.ext.net/ 中文论坛:http://www.coolite.net.cn/2. http://extasp.net
        
阅读全文
 
        
     
    
        
        
摘要:一、前台代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><ext:Button ID="btnExport" runat="server" Icon="ApplicationGo" Text="导出Excel文件" ToolTip="将报表数据导出到Excel文件" ToolTipType="Title" O
        
阅读全文
 
        
     
    
        
        
摘要:在asp.net三层结构(Model、DAL、BLL)设计中,我们通常设置一个SQL助手类,即DbHelperSQL.cs。其代码一般为:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.SqlClient;using Sys
        
阅读全文
 
        
     
    
        
        
摘要:1、以下内容来自:清清月儿http://blog.csdn.net/21aspnet/archive/2007/03/25/1540301.aspx快迅导航:1.GridView无代码分页排序2.GridView选中,编辑,取消,删除3.GridView正反双向排序4.GridView和下拉菜单DropDownList结合5.GridView和CheckBox结合6.鼠标移到GridView某一行时改变该行的背景色方法一7.鼠标移到GridView某一行时改变该行的背景色方法二8.GridView实现删除时弹出确认对话框9.GridView实现自动编号10.GridView实现自定义时间货币等
        
阅读全文
 
        
     
    
        
        
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->for(int i = 0;i<Request.Params.Count;i++)Response.Write("<li>" + Request.Params.Keys[i].ToString() + " = " + Request.Params[i].ToString());Response.Write("<hr&g
        
阅读全文
 
        
     
    
        
        
摘要:web.config:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><appSettings> <add key="SqlServerConnString" value="Data Source=192.168.28.188;Initial Catalog=zhgpm;Persist Security Info=True;User ID=gxjt;Password=gxjt65681"
        
阅读全文
 
        
     
    
        
        
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Import Namespace=" EBShop.Web.control "%>
        
阅读全文