新浪短信Web Service 简介
摘要:新浪短信Web Service 在上一篇文章中,提到了在我的流程监控系统中应用了新浪发送短信的Web Service,得到了大家的响应。很多人对此非常感兴趣。在得到该资源的推荐者张炜先生(开发合作部的同事)的允许后,我决定公布此资源,并且提供如同鸡肋般的示例代码。该资源的该问地址为:http://smsinter.sina.com.cn/ws/smswebservice0101.wsd...
阅读全文
用c#实现条形码
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security...
阅读全文
用正则表达式给指定字符前加空格
摘要:using System;using System.Collections;using System.Text.RegularExpressions;public class MyClass{ public static void Main() { string str_1="sHjhgsdKkjhLjk"; Console.WriteLine(str_1+"\n"); Console.Writ...
阅读全文
ASP.NET直接下载一个文件,而不是在IE中打开它
摘要:有的时候我们不想让用户直接在IE中打开已知类型的文件,比如Word,而希望能直接下载,这时候可用下面代码来替换Response.Redirect Response.ContentType = "application/octet-stream";Response.AddHeader("Content-Disposition", "attachment;FileName="+YourFileName...
阅读全文
编写WORD格式直接显示
摘要:直接能把前台格式按wor显示 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 S...
阅读全文
(轉)各種正則表达式示例~~~
摘要:只能输入数字:"^[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-9]+(.[0-9]{1,3})?$"。只能输...
阅读全文
showModalDialog 模态打开子窗体,返回值到父窗体
摘要:父页面:a.aspx其中javascirpt 脚本如下: function opendata(strUrl)//showModalDialog { var aa=window.showModalDialog(strUrl,null,'dialogWidth:400px;dialogHeight:100px;center:yes;status:no;dialo...
阅读全文
Java 和 C# 之间的异同点 (转自MSDN)
摘要:Visual Studio:针对 Java 开发人员的 C# 编程语言发布日期: 7/23/2004 | 更新日期: 7/23/2004本文讨论 Java 和 C# 之间的异同点,目的在于当迁移到 .NET 时,让 Java 开发人员掌握所涉及的一些知识。Java 和 C# 之间的主要相似点是: ? Java 和 C# 都源于 C++,并且共有 C++ 的一些特征。 ? 两种语言都需要编译成中间...
阅读全文