using System;using System.Collections.Generic;using System.Text;using System.IO;using Microsoft.Win32;using System.Diagnostics;using System.Web; public class Winrar { /// <summary> /// 是否安装了Winrar /// </summary> /// <returns></returns> static public bool Exis... Read More
posted @ 2011-04-23 16:56 javawebsoa Views(181) Comments(0) Diggs(0) Edit
<script language="javascript" type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", url: "GetMap.ashx/ProcessRequest", dataType: "json", success: function (data) { var da... Read More
posted @ 2011-04-23 16:47 javawebsoa Views(244) Comments(0) Diggs(0) Edit
<script language="javascript" type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", url: "GetMap.ashx/ProcessRequest", dataType: "json", success: function (data) { ... Read More
posted @ 2011-04-23 16:46 javawebsoa Views(339) Comments(0) Diggs(0) Edit
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Globalization; using System.Net; using System.IO; using System.Configuration; using System.Xml; namespace WSGPSGateway.BLL { public class LocationAPI { public static string GetAddressB... Read More
posted @ 2011-04-23 16:28 javawebsoa Views(252) Comments(0) Diggs(0) Edit
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; namespace WSGPSGateway.BLL { public class LocationLogic { public LocationLogic() { } private static volatile LocationLogic _LocationLogic = new LocationLogic();... Read More
posted @ 2011-04-23 16:26 javawebsoa Views(367) Comments(0) Diggs(0) Edit
using System;using System.Threading;using System.ServiceProcess;using System.Collections;using System.Configuration.Install;using System.Diagnostics;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Read More
posted @ 2011-04-23 16:25 javawebsoa Views(221) Comments(0) Diggs(0) Edit
UpLoadTools.csusing System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.IO;using System.Threading;namespace cofcms{ public class UpLoadTools { public static string[] UpLoadImage(string ServerPath) { //获取所有的上传控件 var files... Read More
posted @ 2011-04-23 16:19 javawebsoa Views(177) Comments(0) Diggs(0) Edit
using System;using System.Data;using System.Configuration;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.HtmlControls;using System.Data.SqlClient;/// <summary>/// SqlCheck 的摘要说明/// < Read More
posted @ 2011-04-23 16:15 javawebsoa Views(157) Comments(0) Diggs(0) Edit
using System;using System.Collections.Generic;using System.Web;using System.Text;using System.Text.RegularExpressions;namespace cofcms{ public class PagingCollection<T> { private int pagezise; public int Pagezise { get { return pagezise; } set { pagez... Read More
posted @ 2011-04-23 16:14 javawebsoa Views(208) Comments(0) Diggs(0) Edit
using System;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.HtmlControls;using System.Drawing;public partial class CheckC Read More
posted @ 2011-04-23 16:13 javawebsoa Views(170) Comments(0) Diggs(0) Edit
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go -- ============================================= -- Author: <shipeng.wang> -- Create date: <2009-09-11> -- Description: <根据表名创建实体类的字段和属性> -- ============================================= ALTER proc [dbo].[p_Wsp] @tablename varchar(50) a Read More
posted @ 2011-04-23 16:02 javawebsoa Views(330) Comments(0) Diggs(0) Edit
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go -- ============================================= -- Author: <shipeng.wang> -- Create date: <2009-09-14> -- Description: <根据数据库名创建实体类> -- ============================================= create proc [dbo].[p_db_wsp] @dbname varchar(50), --数 Read More
posted @ 2011-04-23 16:02 javawebsoa Views(402) Comments(0) Diggs(0) Edit
/*declare @n intexec sp_fenye 'select * from baseinfo','id desc','id',3,2,@count=@n outputselect @n*/-- =============================================-- Author: shipeng.wang-- Create date: 2010-04-27-- Description: 分页存储过程(对结果集进行分页)-- =========================================== Read More
posted @ 2011-04-23 16:01 javawebsoa Views(184) Comments(0) Diggs(0) Edit
访问外部数据时,opendatasource的使用范例:注意:sql2000默认是启用opendatasource功能的。但sql2005是默认不启用的。如果在sql2005中要使用opendatasource,则需要先开启。 开启方式: 方式一(手工修改sql配置):在sql2005的配置工具-》sql server外围应用配置器-》即席远程查询-》勾选"启用OpenRowset和OpenDatasource支持"选项。 方式二(通过sql语句修改配置): -- 允许配置高级选项 EXEC sp_configure 'show advanced options&# Read More
posted @ 2011-04-23 15:59 javawebsoa Views(384) Comments(0) Diggs(0) Edit
方法一。利用.NET自带的邮件类来实现 smtp 邮件传输协议 CDO 协助数据对象 切忌 用QQ做服务器 不行方法:引用System.Web.Mail命名空间,然后在发送时执行如下代码: MailMessage email = new MailMessage(); email.From = "发件人的Email地址"; email.To = "收件人的Email地址"; email.Subject = "找回密码"; //邮件的主题 email.Body = "您的密码是:dkdkdk"; //邮件的正文内容 M Read More
posted @ 2011-04-23 15:58 javawebsoa Views(213) Comments(0) Diggs(0) Edit
常用的数据库链接串 <!-- Access 2007: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/myFolder/myAccess2007file.accdb;Persist Security Info=False; Access 2000: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/mydatabase.mdb;User Id=admin;Password=; --> <add name="Access" connectionString... Read More
posted @ 2011-04-23 15:51 javawebsoa Views(274) Comments(0) Diggs(0) Edit
网上很多人在问怎么实现Web系统URL传输(表单提交)参数加密。例如:要进行一个用户帐号编辑,要传递用户的ID,URL如下:http://localhost/mysystem/editAccounts.aspx?ID=2 但又不想让别人知道这个用户的ID为2,恶意的使用者可能还会将2修改,改为别的用户ID。 加密传递的参数值可以解决问题。 以下是自己写的DEC加密、解密的基类。 文件名:Security.CS using System; using System.Security.Cryptography; using System.IO; using System.Text; namespa Read More
posted @ 2011-04-23 15:50 javawebsoa Views(181) Comments(0) Diggs(0) Edit
//今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,同理,加一 DateTime.Now.AddDays(1).ToShortDateString(); //本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前的那一天,要注意的... Read More
posted @ 2011-04-23 15:48 javawebsoa Views(153) Comments(0) Diggs(0) Edit
* * 功能说明:备份和恢复SQL Server数据库 * 当使用SQL Server时,请引用 COM组件中的,SQLDMO.dll组件 * 当使用Access中,请浏览添加引用以下两个dll * 引用C:/Program Files/Common Files/System/ado/msadox.dll,该DLL包含ADOX命名空间 * 引用C:/Program Files/Common Files/System/ado/msjro.dll,该DLL包含JRO命名空间 * ***************************************... Read More
posted @ 2011-04-23 15:46 javawebsoa Views(231) Comments(0) Diggs(0) Edit
//进入支付宝支付 protected void Button1_Click(object sender, EventArgs e) { string out_trade_no = "2009052610093"; //业务参数赋值; string gateway = "https://www.alipay.com/cooperate/gateway.do?"; //'支付接口 string service = "create_direct_pay_by_user"; string partner = "2... Read More
posted @ 2011-04-23 15:43 javawebsoa Views(356) Comments(0) Diggs(0) Edit