
C#.net
sondx
这个作者很懒,什么都没留下…
展开
-
导出excel,word
private void export(string outtpye) { string name="我的"+DateTime.Now.ToString("yyMMdd-hhmmss")+"号文件导出"; System.Web.HttpContext hc=原创 2011-08-15 13:51:48 · 549 阅读 · 0 评论 -
IIS 当前连接数
// 取到IIS的各个站点 System.Management.ManagementClass mc = new System.Management.ManagementClass("Win32_PerfFormattedData_W3SVC_WebService");原创 2011-07-18 10:54:17 · 1972 阅读 · 1 评论 -
whois查询
/* HttpContext.Current.Response.Write(Whois.GetWhoisInfo("f.com"));*/ public class Whois { publicstaticstring GetWh原创 2011-08-09 10:47:43 · 722 阅读 · 0 评论 -
开源Granados介绍 - SSH连接远程Linux服务器(C#)
Granados是一个基于.NET的SSH客户端库。它有以下特点:1.Granados是一个C#的开源项目。源码地址:点击进入2.同时支持SSH1和SSH2。3.Granados实现了AES, Blowfish, TripleDES, RSA, DSA等加密验证算法。原创 2011-10-16 10:32:41 · 4590 阅读 · 3 评论 -
网页抓取
///author XieShuxu///2011-6-29protected string httpRequestString(string URL, string Parameters, System.Net.CookieContainer cookie, strin原创 2011-06-29 22:14:00 · 420 阅读 · 0 评论 -
vs.net(2008):把所有需要的库都打包安装。。。。
文件->新建项目->其他项目类型->安装和部署 右边选择安装项目 下面输入名称(比如setup) 点击右边的应用程序文件夹,右键->添加->程序集->浏览 选择你的程序 (debug里的.exe即可,它会自动把所有依赖的动态链接库等加进来) 确定 此时右边应该有很多文件,其中一个就是你选择的.exe,右键点击.exe,选择创建快捷方式 剪切你所创建的快捷方式,最好改个名字(比如转载 2012-02-10 09:34:57 · 1282 阅读 · 0 评论 -
C#动态调用Web服务方法
C#动态调用Web服务方法:完全动态处理,传入服务服务网址,方法名和参数即可.using System; using System.Net; using System.IO; using System.CodeDom; using Microsoft.CSharp; using System.CodeDom.Compiler; using System.转载 2012-06-26 12:11:09 · 1452 阅读 · 2 评论 -
C#对域用户的操作
using System;using System.DirectoryServices; namespace SystemFrameworks.Helper{ /// ///活动目录辅助类。封装一系列活动目录操作相关的方法。 /// public sealed class ADHelper { ///原创 2012-07-20 16:13:21 · 1874 阅读 · 0 评论 -
C#获取“所有用户桌面”的路径
using System.Runtime.InteropServices;[DllImport("shfolder.dll", CharSet = CharSet.Auto)]private static extern int SHGetFolderPath ( IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, Str原创 2012-11-07 18:13:23 · 1211 阅读 · 0 评论