摘要: in cmdnet use the machineexample : net use \\10.1.0.37find who is using the machineqwinsta /server:10.1.0.37if you want to kill a sessionrwinsta /server:10.1.0.37 1where 1 is the session id 阅读全文
posted @ 2012-12-18 18:30 第7笔画 阅读(144) 评论(0) 推荐(0) 编辑
摘要: public class Proxy { public struct Struct_INTERNET_PROXY_INFO { public int dwAccessType; public IntPtr proxy; public IntPtr proxyBypass; }; [DllImport("wininet.dll", SetLastError = true)] private static extern bool InternetSetOpt... 阅读全文
posted @ 2012-06-07 12:58 第7笔画 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 项目的属性,生成,目标平台设为x86 阅读全文
posted @ 2012-06-04 09:33 第7笔画 阅读(134) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Data;public class SQLHelper{ /// <summary> /// 插入单个实例 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="entity"> 阅读全文
posted @ 2012-04-22 22:35 第7笔画 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace System.Data{ public static class DataTableHelper { #region 利用反射把DataTable的数据写到单个实体类 public static T ToSingleEntity<T>(this System.Data.DataTable dtSource) { if (dt... 阅读全文
posted @ 2012-04-22 22:33 第7笔画 阅读(679) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;public class DBHelperSQL{ /// <summary> /// 数据库连接字符串 /// </summary> private static string _conStr = System.Configuration.ConfigurationManager.ConnectionStrings[ 阅读全文
posted @ 2012-04-22 22:30 第7笔画 阅读(268) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>无标题文档</title><style type="text/css">* { margin:0; padding:0}html,body { height:100%; max-height:100%; overflow:hidden;}#content 阅读全文
posted @ 2012-04-09 10:25 第7笔画 阅读(146) 评论(0) 推荐(0) 编辑
摘要: // 引入命名空间转载请注明 http://netsos.cnblogs.com/using System.Net;using System.Net.Mail;SmtpClient smtp = new SmtpClient(); //实例化一个SmtpClientsmtp.DeliveryMethod = SmtpDeliveryMethod.Network; //将smtp的出站方式设为 Networksmtp.EnableSsl = false;//smtp服务器是否启用SSL加密smtp.Host = "smtp.163.com"; //指定 smtp 服务器地址s 阅读全文
posted @ 2012-03-12 21:10 第7笔画 阅读(192) 评论(0) 推荐(0) 编辑
摘要: JS运算 :4.35 + 0.01 = 4.35999999999999999300-250.4 = 49.59999999999999999947*0.8 = 5.60000000000000000000005 阅读全文
posted @ 2012-03-05 16:36 第7笔画 阅读(135) 评论(1) 推荐(0) 编辑
摘要: //加法函数,用来得到精确的加法结果 //说明:javascript的加法结果会有误差,在两个浮点数相加的时候会比较明显。这个函数返回较为精确的加法结果。 //调用:accAdd(arg1,arg2) //返回值:arg1加上arg2的精确结果 function accAdd(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 } try { r2 = arg2.toString().split(".")[1]. 阅读全文
posted @ 2012-03-03 16:52 第7笔画 阅读(991) 评论(0) 推荐(0) 编辑