摘要:
Request.ServerVariables["Url"] 返回服务器地址Request.ServerVariables["Path_Info"] 客户端提供的路径信息Request.ServerVariables["Appl_Physical_Path"] 与应用程序元数据库路径相应的物理路径Request.ServerVariables["Path_Translated"] 通过由虚拟至物理的映射后得到的路径Request.ServerVariables["Script_Name"] 执行 阅读全文
摘要:
using System;using System.Drawing;using System.Drawing.Imaging;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControl 阅读全文
摘要:
using System;using System.Linq;using System.Collections.Generic;using System.Web;using System.Configuration;using System.Net;using System.IO;using System.Text;using System.Net.Security;using System.Security.Authentication;using System.Security.Cryptography.X509Certificates;/// /// 后台读取网页类,使用WebReque 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Web;using System.Web.Security;using System.Security;using System.Security.Cryptography;using System.Text;using System.IO;/// ///MD5 的摘要说明/// public class MD5{ public MD5() { // //TODO: 在此处添加构造函数逻辑 // } // 本地加密密钥(公钥) //public const s... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;/// ///Base64 的摘要说明/// public class Base64{ public Base64() { // //TODO: 在此处添加构造函数逻辑 // } public static string Encode64(string Message) { char[] Base64Code = new char[] { ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Security;using System.Security;using System.Security.Cryptography;using System.Text;using System.IO;using System.Configuration;/// /// 3DES加解密类/// public class TriDES{ //密钥 //sKey必须使用英文字符,区分大小写,且字... 阅读全文
摘要:
XML转换成HTML1.//装载xslXslCompiledTransform xslt = new XslCompiledTransform();xslt.Load("output.xsl");2.//执行转换和输出的结果文件xslt.Transform("Company.xml","Report.html");using System;using System.Collections.Generic;using System.Linq;using System.Web;/// ///ETDZXML 的摘要说明/// public 阅读全文
摘要:
NPOI在.net中的操作Excel1、读取using (FileStream stream = new FileStream(@"c:\客户资料.xls", FileMode.Open, FileAccess.Read)){HSSFWorkbook workbook = new HSSFWorkbook(stream);MessageBox.Show(workbook.GetSheetName(0));}•读取字符串类型数据MessageBox.Show(sheet.GetRow(3).GetCell(4).StringCellValue);读取数字类型数据Numeric 阅读全文