文章分类 -  软件思路

上一页 1 2 3 4 5 6 7 下一页
feixin WebIM.js
摘要:var mainPageUrl = "main.aspx";var loginPageUrl = "login.aspx";var addBuddyUrl = "WebIM/AddBuddy.aspx?Version={0}";var getConnectUrl = "WebIM/GetConnect.aspx?Version={0}";var getContactInfoUrl = "WebIM/GetContactInfo.aspx?UserType={0}&UserValue={1}& 阅读全文
posted @ 2012-07-10 23:14 西湖浪子 阅读(1039) 评论(0) 推荐(0)
feixin WebUtility.js
摘要:String.prototype.endsWith = function(a) { if (typeof a == "undefined" || a == "" || this.length == 0 || a.length > this.length) { return false } if (this.substring(this.length - a.length) == a) { return true } else { return false } return true};String.prototype.startsWith = fu 阅读全文
posted @ 2012-07-10 23:13 西湖浪子 阅读(252) 评论(0) 推荐(0)
feixin WebIMUtility.js
摘要:var __isSmsOnline = /^0+.0+:0+:0+$/;function jCompactUri(d) { this.mobileNoOrSid = 0; this.isRobot = false; this.logicalPool = -1; this.isMobileNo = false; if (!d) { return } if (d.startsWith("tel:")) { this.mobileNoOrSid = parseMobileNo(d.substring(4)); this.isMobileNo = true } else { if 阅读全文
posted @ 2012-07-10 23:13 西湖浪子 阅读(281) 评论(0) 推荐(0)
基于jquery的loading 加载提示效果实现代码
摘要:loading 加载提示 ······ 透明遮罩 居中 body{ margin: 0; font-size: 12px; line-height: 100%; font-family: Arial, sans-serif; } .background { display: block; width: 100%; height: 100%; opacity: 0.4; filter: alpha(opacity=40); background:while; position: absolute; top: 0; left: 0; z- 阅读全文
posted @ 2012-07-09 22:06 西湖浪子 阅读(3481) 评论(0) 推荐(0)
TimeHelp
摘要:/// <summary> /// AMESTime 的摘要说明: /// 美东时间的转换 /// /// 美东时间在UTC-5时区,美国有夏时制,即在夏令时启用之后美东时间比起所在时区早一个小时,即UTC-4 /// 在未使用夏令时时美东时间比北京时间(UTC+8时区)晚13个小时,在启用夏令时时美东时间比北京时间晚12个小时 /// /// /// 美国国会2005年通过的能源法案,夏令时时段:从2007年开始每年3月的第二个星期日开始夏令时,结束日期为11月的第一个星期日。 /// </summary> public class TimeHelp { privat 阅读全文
posted @ 2012-07-06 15:38 西湖浪子 阅读(243) 评论(0) 推荐(0)
AJAX跨域方案
摘要:protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Request["action"]) == false) { System.Net.WebClient web = new System.Net.WebClient(); System.IO.StreamReader reader = new System.IO.StreamReader(web.OpenRead(http://www.baidu.com + Request.Url.Query)); Response 阅读全文
posted @ 2012-07-03 17:30 西湖浪子 阅读(114) 评论(0) 推荐(0)
计划任务
摘要:(转)在业务复杂的应用程序中,有时候会要求一个或者多个任务在一定的时间或者一定的时间间隔内计划进行,比如定时备份或同步数据库,定时发送电子邮件等,我们 称之为计划任务。实现计划任务的方法也有很多,可以采用SQLAgent执行存储过程来实现,也可以采用Windows任务调度程序来实现,也可以使用 Windows服务来完成我们的计划任务,这些方法都是很好的解决方案。但是,对于Web应用程序来说,这些方法实现起来并不是很简单的,主机服务提供商 或者不能直接提供这样的服务,或者需要你支付许多额外的费用。 本文就介绍一个直接在Web应用程序中使用的简单的方法,这个方法不需要任何额外的配置即可轻松实现。 阅读全文
posted @ 2012-04-24 17:25 西湖浪子 阅读(371) 评论(1) 推荐(0)
FTPClient 通过二进制类型、ASCII类型 传输
摘要:using System;using System.Net;using System.IO;using System.Text;using System.Net.Sockets;namespace WindowsApplication1.Bll{ /// <summary> /// FTPClient 的摘要说明。 /// </summary> public class FTPClient { #region 构造函数 /// <summary> /// 缺省构造函数 /// </summary> public FTPClient() { str 阅读全文
posted @ 2012-04-24 12:57 西湖浪子 阅读(4193) 评论(0) 推荐(0)
Winform调用系统的剪切,复制,粘贴文件功能
摘要:转载做一个小软件,类似于资源管理器的操作形式,剪切,复制,粘贴自然是少不了的了,在MSDN中找来好久,总算是明白过来了,代码如下: /// <summary> /// 复制或剪切文件至剪贴板(方法) /// </summary> /// <param name="files">需要添加到剪切板的文件路径数组</param> /// <param name="cut">是否剪切true为剪切,false为复制</param> public static void CopyToClipb 阅读全文
posted @ 2012-03-24 17:11 西湖浪子 阅读(2013) 评论(0) 推荐(0)
C#通用类库--DOS常用命令
摘要://类名:EcanDOS//作用:DOS常用命令操作//作者:刘典武//时间:2010-12-01using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Diagnostics;using System.Runtime.InteropServices;namespace Ecan{ public class EcanDOS { //引入API函数 [DllImportAttribute("user32.dll")] private static 阅读全文
posted @ 2012-03-24 14:58 西湖浪子 阅读(200) 评论(0) 推荐(0)
时间格式转化问题
摘要:declare @ActStartDate datetimeset @ActStartDate ='2012-01-01'--select @ActStartDate=FStartDate from t_AccountInfo Where FID=1print @ActStartDateprint cast(@ActStartDate as varchar(10))print convert(varchar,@ActStartDate,101)当时间格式用作比较参数的时候,通用做法 应该是 先做格式化转化,用CAST方法不合适 阅读全文
posted @ 2012-02-14 14:50 西湖浪子 阅读(117) 评论(0) 推荐(0)
sql xml 查询
摘要:Select A.*,R.Description,O.AltOrderNum 'OrderNum', cast(cast(T.[Name] as xml).query('/Languages/Language[@code=''en'']') as nvarchar(max)) as [EnglishName],b.Balance From [tbl_Commission_Ledger] A WITH (NOLOCK) 阅读全文
posted @ 2011-12-29 13:29 西湖浪子 阅读(123) 评论(0) 推荐(0)
判断局部临时表是否存在,如果存在就删除它
摘要:create table #t(id int) if exists(select 1 from tempdb..sysobjects where left(name,len( '#t '))= '#t ') begin print '存在 ' drop table #t end else print '不存在 ' if exists(select 1 from tempdb..sysobjects where left(name,len( '#t '))= '#t ') print '存在 阅读全文
posted @ 2011-12-14 13:43 西湖浪子 阅读(155) 评论(0) 推荐(0)
异步图片资源
摘要://<img xxxxsrc="XXXX.jpg">(function(e) { Snda = e.Snda = e.Snda || {}; Snda.extend = function(a, b, c) { for (prop in b) { if (c == false && a[prop] != null) continue; a[prop] = b[prop] }; return a }; Snda.Utility = Snda.Utility || {}; Snda.Utility.Event = Snda.Utility.Event 阅读全文
posted @ 2011-09-09 16:57 西湖浪子 阅读(206) 评论(0) 推荐(0)
CSS代码优化全攻略
摘要:转:要点1:css代码优化作用与意义1、减少占用网页字节。在同等条件下缩短浏览器下载css代码时间,相当于加快网页打开速度2、便于维护。简化和标准化css代码让css代码减少,便于日后维护3、让自己写的css代码更加专业。要点2:css优化方法-需要优化css代码地方1、缩写css代码。2、排列css代码。3、同属性提取共用css选择器。4、分离网页颜色和背景设置样式(较大站点需要注意)。5、条理化css代码。实例讲解以上几点div css优化方法1、缩写css代码常用需要缩写 css属性代码如下:background(背景属性未优化前background-color:#FFF;对应属性为背景 阅读全文
posted @ 2011-09-04 13:35 西湖浪子 阅读(147) 评论(0) 推荐(0)
动态拉去的数据
摘要:动态拉去的数据:<ul><li><a href="/info/4377_0.html" target="_blank" tabIndex="-1"><font color="red">教您识别常见网络骗术</font></a></li><li><a href="#" onclick="pgvSendClick({hottag:'KF.SERVICE.INDEX.ANNOUNCE 阅读全文
posted @ 2011-08-13 14:55 西湖浪子 阅读(189) 评论(0) 推荐(0)
js 中文编码 工具
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2011-08-06 21:41 西湖浪子 阅读(199) 评论(0) 推荐(0)
中国省份与城市数据插入 .
摘要:if exists (select * from sysobjects where id = OBJECT_ID('[province]') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE [province]CREATE TABLE [province] ([id] [int] NOT NULL,[provinceID] [nvarchar] (12) NOT NULL,[province] [nvarchar] (80) NOT NULL)ALTER TABLE [province] WITH NO 阅读全文
posted @ 2011-08-06 19:10 西湖浪子 阅读(210) 评论(0) 推荐(0)
网页定时信息提醒
摘要:<div id="popup" style="display:none" class="pay_attention layoutfix"><a href="javascript:void(0);" onclick="this.parentNode.style.display='none';" title="关闭" class="close_attention"></a><div class=&quo 阅读全文
posted @ 2011-08-05 10:08 西湖浪子 阅读(225) 评论(0) 推荐(0)
ASP.NET中使用System.Net.Mail发邮件
摘要:一、一般的邮件发送public static void SendMail()//普通的邮件发送{ MailAddress from = new MailAddress("FromEmail@website.com"); MailAddress to = new MailAddress("ToEmail@website.com"); MailMessage message = new MailMessage(from, to); message.Subject = "邮件标题"; message.Body = "邮件内容&qu 阅读全文
posted @ 2011-07-11 17:15 西湖浪子 阅读(358) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 下一页