摘要: 1、获取和设置当前工作目录a) System.IO.Directory.GetCurrentDirectory() 说明:获取应用程序的当前工作目录的完全限定路径。该方法是对Win32 API的GetCurrentDirectory函数的一个封装。例如:'"C:\Documents and Sett... 阅读全文
posted @ 2015-04-05 13:12 徐本县 阅读(2312) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Reflection;namespace ConsoleApplication1{ class Program { st... 阅读全文
posted @ 2015-04-05 13:10 徐本县 阅读(145) 评论(0) 推荐(0)
摘要: ALTER PROCEDURE [dbo].[getData] -- Add the parameters for the stored procedure here@tb varchar(150),@status nchar(2),@indexpage int,@endpage intASdecl... 阅读全文
posted @ 2015-04-04 11:17 徐本县 阅读(134) 评论(0) 推荐(0)
摘要: tomcat的默认端口是8080,但该端口不是tomcat的唯一端口,可以通过修改tomat的配置文件进行修改,打开tomcat所在的conf文件夹的server.xml文件;找到等代码,将8080改为自己想改的端口,这里我改为8088保存退出;如下图所示,没有修改之前端口是8080;修改后,重启t... 阅读全文
posted @ 2015-04-02 15:25 徐本县 阅读(311) 评论(0) 推荐(0)
摘要: Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。我们想要在这个IDE上开发Java web程序,就需要配置我们WEB服务器apache-tomcat-7,以下是配置的步骤:在配置之前先要安装好软件:到官网下载:apache-tomcat-7.0.52-windows-x86jdk-... 阅读全文
posted @ 2015-04-02 15:22 徐本县 阅读(350) 评论(0) 推荐(0)
摘要: $("#selectModel").bind("click",function(){ $("#dt tbody").html(""); $.ajax({ type: "POST", d... 阅读全文
posted @ 2015-04-01 10:41 徐本县 阅读(719) 评论(0) 推荐(0)
摘要: 一、gzip介绍 Gzip是一种流行的文件压缩算法,现在的应用十分广泛,尤其是在Linux平台。当应用Gzip压缩到一个纯文本文件时,效果是非常明显的,大约可以减少70%以上的文件大小。这取决于文件中的内容。 利用Apache中的Gzip模块,我们可以使用Gzip压缩算法来对Apache服务器发布的... 阅读全文
posted @ 2015-03-31 17:00 徐本县 阅读(486) 评论(0) 推荐(0)
摘要: public int ExecuteSqlTran(Maticsoft.Model.SHWL_Stock model, Maticsoft.Model.SHWL_OutPutComponet model2) { StringBuilder strSql = ne... 阅读全文
posted @ 2015-03-31 13:26 徐本县 阅读(490) 评论(0) 推荐(0)
摘要: Category.DataSource = b_ProductType.GetAllList().Tables[0]; Category.DataTextField = "TypeName"; Category.DataValueField = "ID";... 阅读全文
posted @ 2015-03-31 13:22 徐本县 阅读(323) 评论(0) 推荐(0)
摘要: /// /// 修改XML /// /// test public static void ChangeXml(string str) { string xmlPath = "config... 阅读全文
posted @ 2015-03-25 10:46 徐本县 阅读(154) 评论(0) 推荐(0)