摘要:
在安装Excel2000 的电脑上运行支持Excel2003的程序出现如下错误:ption='System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object For
阅读全文
posted @ 2011-05-09 12:01
Black Bean
阅读(386)
推荐(0)
摘要:
SqlConnection conn = new SqlConnection();conn.ConnectionString = "";conn.Open();SqlCommand cmd = new SqlCommand();cmd.Connection = conn; cmd.CommandText = "if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[user]') and OBJECTPROPERTY(id, N'IsUserTable
阅读全文
posted @ 2011-04-23 10:13
Black Bean
阅读(777)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Web.UI.WebControls;using System.Web.UI;using System.ComponentModel;using System.Collections;using CommonLib;namespace WebControls{ [ToolboxData("<{0}:AXGridView runat=\"server\"></{0}:AXGridView>&
阅读全文
posted @ 2011-04-22 17:44
Black Bean
阅读(991)
推荐(0)
摘要:
编辑器加载中...1. oneTT有字段AA BB CC2. twoTT有字段EE FF BB两个表连接查询,List<MulTable> mul = (from a in _db.oneTTT join b in _db.twoTTT on a.BB equals b.BB where a.BB != "" select new MulTable { AAA = a.AA, BBB = a.BB, EEE = b.EE, FFF = b.FF }).ToList<MulTable>(); foreach (MulTable item in mul)
阅读全文
posted @ 2011-04-22 16:18
Black Bean
阅读(8091)
推荐(0)
摘要:
一、iis中不支持aspx时在cmd命令里执行先执行cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727敲回车aspnet_regiis-i 敲回车二、IIS不支持ASP解决办法1-1.iis中的web服务扩展 中的 Active Pever Pages 右击允许,启动该服务。如果不行的话 可以尝试ASP.NET V2.0允许2-2.1.解决思路和步骤,基本按照操作:1)右键单击 我的电脑---->管理,打开计算机管理界面打开 本地用户和组---->用户右键单击 启动IIS进程帐号 IWAM_****(注:****一般是计算机名)点击设置
阅读全文
posted @ 2011-04-18 15:48
Black Bean
阅读(201)
推荐(0)
摘要:
Create a Windows Service project using VB.NET. Open Server Explorer and expand the tree node which says Management Classes. Right click on Processes node and select "Generate Managed Class". This will add a reference to the System.Management namespace. Now import System.Management namespac
阅读全文
posted @ 2011-04-13 11:04
Black Bean
阅读(385)
推荐(0)
摘要:
public static string Encrypt(string strPWtoEncrypt) { string CurrentFunction = "" + CommonSettings.ModNFunComStr + "Encrypt"; try { string strPword=string.Empty; byte bytCount; int intTemp; for (bytCount = 1; bytCount <= strPWtoEncrypt.Length; bytCount++) { intTemp = Convert.T
阅读全文
posted @ 2011-04-13 09:35
Black Bean
阅读(246)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Security.AccessControl;using System.IO;using System.Collections;namespace Customization.Service{ public class FolderSecurity { public static bool SetFolderACL(String FolderPath, String UserName, FileSystemRights Rights, Acc
阅读全文
posted @ 2011-04-13 09:31
Black Bean
阅读(384)
推荐(0)
摘要:
C# 判断中文字符(字符串)-整理Unicode:32到128 非中文及可打印字符方法一http://blog.csdn.net/qiujiahao/archive/2007/08/09/1733169.aspx在unicode 字符串中,中文的范围是在4E00..9FFF:CJK Unified Ideographs。通过对字符的unicode编码进行判断来确定字符是否为中文。protectedboolIsChineseLetter(string input,int index)...{intcode=0;intchfrom=Convert.ToInt32("4e00",
阅读全文
posted @ 2011-03-17 14:12
Black Bean
阅读(755)
推荐(0)
摘要:
Domino Internet邮件 邮件处理概述 我们在做办公应用时,通常使用Domino做为内部的邮件服务器。随着网络的发展,用户经常通过专线或ISDN等方式连网。此时,用户通常会要求:”可不可以在办公系统中处理Internet呢?”。(当然是可以的啦!) 在R4.X,Domino是通常SMTP MTA来转发Internet邮件。在R5中,SMTP、POP3、IMAP已经成为像Router一样的标准任务,可以随时加载。有了对这些Internet邮件协议的支持,Domino服务器不仅仅可以做Notes的邮件服务器,还可以做为一个Internet邮件服务器。当然啦,在邮件处理的过程中,不管是No
阅读全文
posted @ 2011-03-14 10:02
Black Bean
阅读(788)
推荐(0)