上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 454 下一页
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(197) 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(347) 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(420) 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(205) 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(415) 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(233) 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(298) 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(201) Comments(0) Diggs(0)
//今天 DateTime.Now.Date.ToShortDateString(); //昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); //明天,同理,加一 DateTime.Now.AddDays(1).ToShortDateString(); //本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前的那一天,要注意的... Read More
posted @ 2011-04-23 15:48 javawebsoa Views(177) Comments(0) Diggs(0)
* * 功能说明:备份和恢复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(247) Comments(0) Diggs(0)
上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 454 下一页