- 博客(33)
- 资源 (7)
- 收藏
- 关注
转载 .net解析、下载、处理html辅助类源码
using System;using System.Text; using System.Net; using System.IO; using System.Threading;using System.Text.RegularExpressions;public class HTMLHelper{ #region 私有字段 private sta
2013-02-28 14:09:30 443
转载 查询数据库中导致死锁的SQL语句
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_who_lock]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[sp_who_loc
2013-02-28 14:03:54 1363
转载 .net中和sql中使用事务的两种用法介绍
事务(Transaction)是并发控制的单位,是用户定义的一个操作序列。这些操作要么都做,要么都不做,是一个不可分割的工作单位。通过事务,SQL Server能将逻辑相关的一组操作绑定在一起,以便服务器保持数据的完整性。在sql server+ .net 开发环境下,有两种方法能够完成事务的操作,保持数据库的数据完整性;一个就是用sql存储过程,另一个就是在ADO.NET中一种简单的
2013-02-28 14:01:01 451
原创 asp.net中Jquery解析json数据格式
aspx前台页面代码如下: function TestAjax(){ $.ajax({ url: "http://www.xiangyangseo.com/", //ajax请求的路径 dataType: "json",
2012-07-03 16:21:51 822
原创 综合几十个权威技术网站,贡献给你们一份最给力的学习资料
**************************************************** 名称:MSDN 地址:http://msdn.microsoft.com/描述:这个就不用多说了吧,虽然出了中文MSDN,但是资料还是不够全,英文的就什么都有 了。****************************************************
2011-08-16 17:59:23 1535
原创 Excel导出
protected void btnExcel_Click(object sender, EventArgs e) { try { int intPageCount = 0; //记录总条数 //是否结算 scLast.isSettleUp = Convert.ToInt32(this
2011-06-23 11:08:00 443
原创 最实用的DBHelper类
<br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Text;<br />using System.Data.SqlClient;<br />using System.Data;<br />using System.Configuration;<br />namespace GetRoomPrice<br />{<br /> public class D
2011-03-16 15:59:00 725
原创 万能DBHelper类
<br />using System;<br />using System.Collections.Generic;<br />using System.Text;<br />using System.Data.SqlClient;<br />using System.Data;<br />using System.Configuration;<br />using System.Collections;<br /><br />namespace CBAHotelDAL<br />{<br /> pu
2011-03-16 15:56:00 838
原创 绘制条形码
<br />using System;<br />using System.Collections.Generic;<br />using System.Text;<br />using System.Drawing;<br />namespace CjLibrary<br />{<br /><br /> public class CjBarCode39 : CjBarCode<br /> {<br /> private double wideToNarrowRatio = 3.0
2011-03-08 18:00:00 958
原创 javascript随机显示图片
<br />//循环显示图片----------------------------------------------------------------<br /><script language="JavaScript"><br /> var NowFrame = 1; //定义当前图片<br /> var MaxFrame = 3; //定义图片张数<br /> function show() {<br /> var next = NowFrame +
2011-01-26 16:29:00 2409 1
原创 asp连接access数据例子
Set bb = Server.CreateObject("ADODB.Connection")bb.Open connstr%>Asp+Access读取数据库rs.open "select * from StuInfo",bbif rs.eof and rs.bof thenresponse.Write "数据库中没有数据"response.End()end ifresponse.Write r
2010-05-27 11:40:00 578
原创 发送电子邮件
//发送电子邮件的方法 private void SendEmail(string mailServerName, string from, string password, string to, string subject, string body) { try { //编码暂硬性规定为GB2312
2010-05-27 11:37:00 607
原创 html语法大全
HTML语言语法大全 批注 跑马灯 ...普通卷动 ...滑动 ...预设卷动 ...来回卷动 ...向下卷动 ...向上卷动 向右卷动 向左卷动 ...卷动次数 ...设定宽度 ...设定高度 ...设定背景颜色 ...设定滚动速度...设定卷动时间 ...鼠标经过上面时停止滚动...鼠标离开时开始滚动字体效果 ...标题字(最大) ...标题字(最小) ...粗体字 ...粗体字(强
2010-05-27 11:34:00 957
转载 项目经理面试中法宝
以下是典型的项目管理面试中通常会问到的问题(期望的回答):很多的问题的答案是主观的,面试官想知道你的观点是否和他们的及公司一致。问题的构成如下: 1. 项目管理软件工具知识 2. 编制项目计划的技术 3. 人员管理技能 4. 沟通技能 5. 原理体系知识(标准开发生命周期和项目管理)。 项目管理软件工具知识 问题1:工期和工作量之间的差异是什么? 答案
2010-05-27 11:29:00 955
原创 批处理附加、分离数据库
附加:sqlcmd -d master -Q "exec sp_attach_db @dbname=HealthExamining,@filename1=%CD%/DB/HealthExamining.mdf,@filename2=%CD%/DB/HealthExamining_log.ldf" 分离:sqlcmd -d master -Q "exec sp_det
2010-05-27 11:27:00 486
原创 JQuery语法知识
1.迭代两个图像,并设置它们的 src 属性。注意:此处 this 指代的是 DOM 对象而非 jQuery 对象。 $("img").each(function(i){ this.src = "test" + i + ".jpg"; }); 2.选择文档中所有图像作为元素数组,并用数组内建的 reverse 方法将数组反向。$("img").get().reverse(); 3.取得
2010-05-27 11:25:00 1026 1
原创 常用日期格式转换
select CONVERT(varchar(10) , getdate(), 120 )2004-09-12select CONVERT(varchar(10) , getdate(), 111 )2004/09/12select CONVERT(varchar(10) , getdate(), 112 )20040912select CONVERT(varchar(10) , ge
2010-05-27 11:23:00 569
原创 数据库语法
--------------创建一个数据表-------------------CREATE TABLE 表名( 列名1 类型1 约束, 列名2 类型2 约束, ……………… 列名n 类型n 约束) ----创建表时直接创建各种约束CREATE TABLE 表名( 列名1 类
2010-05-27 11:21:00 580
原创 PHP的基础知识
看了些PHP的基础知识,自己在这里总结下:1,在HTML嵌入PHP脚本有三种办法: //嵌入方式一 echo("test"); //嵌入方式二 echo "test2"; ?> //嵌入方式三 echo "test3"; ?> 还有一种嵌入方式,即使用和Asp相同的标记,但要修改PHP.ini 相关配置,不推荐使用。2,PHP注释分单行和多行注释,和java注释方式相同。//这
2010-05-27 11:15:00 624 1
原创 漂浮的图片
//漂浮的图片-----------------------------------------------------------var r=1;var t=1;function move(){ var num1 = document.body.offsetWidth - document.getElementById("div1").offsetWidth; var num2 = do
2010-05-27 11:14:00 456
转载 跟随鼠标的字符
//跟随鼠标的字符------------------------------------------------------脚本说明:第一步:把如下代码加入区域中.spanstyle { COLOR: #ffd8ff; FONT-FAMILY: 宋体; FONT-SIZE: 10pt; POSITION: absolute; TOP: -50px; VISIBILITY: v
2010-05-27 11:13:00 467
原创 循环显示图片
//循环显示图片---------------------------------------------------------------- var NowFrame = 1; //定义当前图片 var MaxFrame = 3; //定义图片张数 function show() { var next = NowFrame + 1; if(
2010-05-27 11:12:00 573
原创 javascript显示时间
//显示当前时间----------------------------------------------------------function reloop(){ var time = new Date( ); //获得当前时间 //获得年、月、日,Date()函数中的月份是从0-11计算 var year = time.getFullYear(); var month = time.
2010-05-27 11:10:00 451
转载 C# 写的下载器
System.Net.WebClient client=new WebClient();byte[] page=client.DownloadData("http://www.google.com");string content=System.Text.Encoding.UTF8.GetString(page); http://www.mscto.com 在dotnet下经常使用此类方法
2010-05-27 11:04:00 561
转载 常用正则表达式
只能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^/d{n}$"。 只能输入至少n位的数字:"^/d{n,}$"。 只能输入m~n位的数字:。"^/d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0
2010-05-27 11:02:00 779
转载 汉字转换成拼音
c# 一个有用的汉字转拼音类C#汉字转换为拼音的类,含大小写转换 因为是静态函数 调用方法很简单 CrazyCoderPinyin.Convert("疯狂代码"); 代码如下:using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpres
2010-05-27 11:01:00 530
原创 获取客户的IP地址
通常我们都通过下面的代码获得IP: string ip =System.Web.HttpContext.Current.Request.UserHostAddress; 或 string ip =System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];REMOTE_ADDR 说明:访问客户端
2010-05-27 11:00:00 707
转载 汉字转换成拼音
c# 一个有用的汉字转拼音类C#汉字转换为拼音的类,含大小写转换 因为是静态函数 调用方法很简单 CrazyCoderPinyin.Convert("疯狂代码"); 代码如下:using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpres
2010-05-27 11:00:00 589
转载 ASP.NET获取客户端IP地址
通常我们都通过下面的代码获得IP: string ip =System.Web.HttpContext.Current.Request.UserHostAddress; 或 string ip =System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];REMOTE_ADDR 说明:访问客户端
2010-05-27 10:58:00 1438
原创 数字水印
using System;using System.Web;using System.Drawing;using System.IO;public class Handler : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Request.ContentType = "
2010-05-27 10:57:00 615
原创 水印绘制文字
using System;using System.Web;using System.Drawing;using System.IO;public class PicHandler : IHttpHandler { public void ProcessRequest (HttpContext context) { //创建图片对象 Image b
2010-05-27 10:56:00 350
原创 asp.net合并excel
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.OleDb; //导入命名空间using System.IO;using Excel = Micr
2010-05-27 10:54:00 706
原创 DBHelper类参考
using System;using System.Collections.Generic;using System.Data.SqlClient;using System.Data;namespace HealthExamining.DAL { public static class DBHelper { public static readonly string Connectio
2010-05-27 10:51:00 508
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人