上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 455 下一页
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(164) Comments(0) Diggs(0)
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(214) Comments(0) Diggs(0)
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(178) Comments(0) Diggs(0)
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(341) Comments(0) Diggs(0)
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(410) Comments(0) Diggs(0)
/*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(190) Comments(0) Diggs(0)
访问外部数据时,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(393) Comments(0) Diggs(0)
方法一。利用.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(222) Comments(0) Diggs(0)
常用的数据库链接串 <!-- 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(283) Comments(0) Diggs(0)
网上很多人在问怎么实现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(189) Comments(0) Diggs(0)
上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 455 下一页