摘要: #region 获取cpu序列号 硬盘ID 网卡硬地址 /**/ /// /// 获取cpu序列号 /// /// string public static string ... 阅读全文
posted @ 2013-03-16 21:55 深南大道 阅读(201) 评论(0) 推荐(0)
摘要: #region Windows服务控制区 #region 安装服务 /// /// 安装服务 /// private bool InstallService(string NameService) ... 阅读全文
posted @ 2013-03-13 09:24 深南大道 阅读(369) 评论(0) 推荐(0)
摘要: //dosCommand Dos命令语句 语句一&&语句二 语句一执行成功才执行二 public string Execute(string dosCommand) { return Execute(dosCommand, 10); } /// /// 执行DO... 阅读全文
posted @ 2013-03-12 18:14 深南大道 阅读(278) 评论(0) 推荐(0)
摘要: 1. 新建一个Windows服务应用程序 创建项目——》Visual C# 左侧的"+"——》Windows ——》Windows 服务(右侧模板)——》输入名称,确定创建项目 2. 设置Windows服务的属性(Windows服务里没有窗体,所以点击左侧设计器里空白的地方即可在右侧... 阅读全文
posted @ 2013-03-12 14:19 深南大道 阅读(1536) 评论(0) 推荐(0)
摘要: // Displays sending with a connected socket // using the overload that takes a buffer. public static int SendReceiveTest1(Socket server) { byte[... 阅读全文
posted @ 2013-03-11 11:19 深南大道 阅读(2342) 评论(0) 推荐(0)
摘要: //发送大量文本消息 private void sendMessage() { if (richTextBox_send.Text.Trim().Length==0 && richTextBox_send.Rtf.Index... 阅读全文
posted @ 2013-03-11 10:27 深南大道 阅读(300) 评论(0) 推荐(0)
摘要: //发送文件 private void btn_sendFile_Click(object sender, EventArgs e) { //打开文件 OpenFileDialog dlg = new... 阅读全文
posted @ 2013-03-11 10:19 深南大道 阅读(805) 评论(0) 推荐(1)
摘要: namespace Message { partial class Form3 { /// /// Required designer variable. /// private System.Component... 阅读全文
posted @ 2013-03-11 10:16 深南大道 阅读(451) 评论(0) 推荐(0)
摘要: 前提准备:mssql 2008已安装好了一个实例(我按默认情况下安装的实例是:SQLEXPRESS),并安装了SQL Server Management Studio工具。 为了满足可以用(local)或IP地址登录2008,需要以下配置支持: 一、打开“SQL Server 配置管理器”,做... 阅读全文
posted @ 2013-03-07 17:29 深南大道 阅读(477) 评论(0) 推荐(0)
摘要: jQuery获取Select选择的Text和Value: 语法解释: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id")... 阅读全文
posted @ 2013-01-25 10:42 深南大道 阅读(181) 评论(0) 推荐(0)
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.W... 阅读全文
posted @ 2013-01-24 09:17 深南大道 阅读(142) 评论(0) 推荐(0)
摘要: using System; using System.Configuration; using System.Data; using System.IO; using System.Text; using System.Threading; using System.Web; using Sys... 阅读全文
posted @ 2013-01-21 14:58 深南大道 阅读(244) 评论(0) 推荐(0)
摘要: using System; using System.Collections; using System.Text.RegularExpressions; namespace MSCL { //// /// RegularMatch正则验证类 ... 阅读全文
posted @ 2013-01-18 14:09 深南大道 阅读(155) 评论(0) 推荐(0)
摘要: SQL SERVER中是允许有自定义函数,Microsoft SQL Server并不将用户限制在定义为 Transact-SQL语言一部分的内置函数上,而是允许用户创建自己的用户定义函数。 函数是由一个或多个 Transact-SQL语句组成的子程序,可用于封装代码以便重新使用。尽管自定义函数... 阅读全文
posted @ 2013-01-16 16:38 深南大道 阅读(179) 评论(0) 推荐(0)
摘要: CREATE PROC [dbo].[Mypage] @tableName SYSNAME,-- 表名 @keyField NVARCHAR(1000),-- 主键,多个主键有逗号分隔开 ... 阅读全文
posted @ 2013-01-16 16:13 深南大道 阅读(139) 评论(0) 推荐(0)
摘要: 1.通过标签类型选择 $("p") //选择所有的P标签 $("a") //选择所有的a标签 $("div") //选择所有的div标签 2.通过class选择元素 $(".r... 阅读全文
posted @ 2013-01-16 15:46 深南大道 阅读(123) 评论(0) 推荐(0)
摘要: using Sys... 阅读全文
posted @ 2013-01-16 10:01 深南大道 阅读(205) 评论(0) 推荐(0)
摘要: 主要的原理就是替换模板里的特殊字符。 1、静态模板页面 template.html,主要是定义了一些特殊字符,用来被替换。 Title Title 浏览次 Time ... 阅读全文
posted @ 2013-01-14 14:35 深南大道 阅读(134) 评论(0) 推荐(0)
摘要: 第一步:新建项目,创建一个简单模版页:TemplatePage.htm Porschev 生成静态页简单示例 $Porschev[0]$ 页标题:$Porschev[0]$ 名称:$Porschev[1]$ 网址:$Porschev[2]$ 时间:$Porschev[3... 阅读全文
posted @ 2013-01-14 13:43 深南大道 阅读(141) 评论(0) 推荐(0)
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.W... 阅读全文
posted @ 2013-01-14 11:14 深南大道 阅读(139) 评论(0) 推荐(0)
摘要: 网站后台通用管理系统,,您好! ... 阅读全文
posted @ 2013-01-12 19:25 深南大道 阅读(221) 评论(0) 推荐(0)
摘要: Jquery Uploadify上传带进度条 上传| 取消上传 using System... 阅读全文
posted @ 2013-01-10 14:31 深南大道 阅读(144) 评论(0) 推荐(0)
摘要: 需求:在做软件的过程中,发现不少客户在做数据检索时,打汉字怕麻烦,也影响工作效率,要求在查询时,支持查询汉字的字母开头查询。 做到支持数据库拼音码查询,主要分一下几步实现: 1.在数据库中建立一个sys_spell_dict表,把常用的汉字与拼音字母做为对照信息存储到数据库中... 阅读全文
posted @ 2013-01-10 10:11 深南大道 阅读(870) 评论(0) 推荐(0)
摘要: TreeView一次性加载和异步加载 ... 阅读全文
posted @ 2013-01-07 15:12 深南大道 阅读(194) 评论(0) 推荐(0)
摘要: //JQuery获取和设置Select选项方法汇总如下: //获取select //先看看下面代码: $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 var checkText=$("#selec... 阅读全文
posted @ 2013-01-06 15:30 深南大道 阅读(184) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Web; //add using System.Net; using System.IO; using tessnet2; //引用tessnet2_32.dll using... 阅读全文
posted @ 2013-01-05 17:20 深南大道 阅读(878) 评论(1) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using S... 阅读全文
posted @ 2013-01-05 09:09 深南大道 阅读(171) 评论(0) 推荐(0)
摘要: 先在网站根目录下建立一个config文件夹,再在此文件架下建立一个urls.config文件,这里记录url的配置信息代码如下: 这里只写了一种规则,然后修改网站的web.config文件,修改后的代码为: ... 阅读全文
posted @ 2012-12-27 16:27 深南大道 阅读(161) 评论(0) 推荐(0)
摘要: --准备环境 --表1 CREATE TABLE itemfile ( itemcode varchar2(4), itemdesc varchar2(20), p_category varchar2(20), qty_hand number(5), re_level num... 阅读全文
posted @ 2012-12-25 16:30 深南大道 阅读(297) 评论(0) 推荐(0)
摘要: 我们先以解析上例中的comments对象的JSON数据为例,然后再小结jQuery中解析JSON数据的方法。 上例中得到的JSON数据如下,是一个嵌套JSON: {"comments":[{"content":"很不错嘛","id":1,"nickname":"小红"},{"content":"... 阅读全文
posted @ 2012-12-24 09:48 深南大道 阅读(148) 评论(0) 推荐(0)