http://CC318.com

一个程序的窝

我的窝窝 http://CC318.com 这里有更多内容,不信你试试.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年2月13日

摘要: private static string[] wordListText; string[] tempWordListText = new string[] {"Alfa","Alpha"} Array.Sort(tempWordListText);排序 _document.Load(HttpContext.Current.Server.MapPath("~/App_Data/Car... 阅读全文

posted @ 2009-02-13 11:28 chaoliu 阅读(268) 评论(0) 推荐(0) 编辑

摘要: 程序代码 RealMedia RealMedia & Windows Media Player 代码: 程序代码 Windows Media Windows Media & 阅读全文

posted @ 2009-02-13 11:27 chaoliu 阅读(364) 评论(0) 推荐(0) 编辑

摘要: 增加字段 alter table docdsp add dspcode char(200) 删除字段 ALTER TABLE table_NAME DROP COLUMN column_NAME 修改字段类型 ALTER TABLE table_name ALTER COLUMN column_name new_data_type 改名 sp_rename 更改当前数据库中用户创建对象(如表、... 阅读全文

posted @ 2009-02-13 11:26 chaoliu 阅读(200) 评论(0) 推荐(0) 编辑

摘要: public void ExportResult(DataSet ds) { HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=Order.xls"); HttpContext.Current.Response.Clear(); ... 阅读全文

posted @ 2009-02-13 11:26 chaoliu 阅读(195) 评论(0) 推荐(0) 编辑

摘要: void sendmail() { System.Web.Mail.MailMessage msgMail = new System.Web.Mail.MailMessage(); //msgMail.To = "Order@labdelon-estore.com"; msgMail.To = "ppsetserver@hotmail.co... 阅读全文

posted @ 2009-02-13 11:25 chaoliu 阅读(213) 评论(0) 推荐(0) 编辑

摘要: public void Sender(MailMessage msg) { smtp = this.ExecuteScalar("select smtp from config").Trim(); uname = this.ExecuteScalar("select username from config").Trim() ; pwd = ... 阅读全文

posted @ 2009-02-13 11:25 chaoliu 阅读(154) 评论(0) 推荐(0) 编辑

摘要: /// /// 组合HTML编码的邮件正文 /// /// /// private string EnHtml(string PageUrl) { WebRequest request = WebRequest.Create(PageUrl); WebResponse response = request.... 阅读全文

posted @ 2009-02-13 11:24 chaoliu 阅读(444) 评论(0) 推荐(0) 编辑

摘要: /// 过滤SQL字符。 /// /// 要过滤SQL字符的字符串。 /// 已过滤掉SQL字符的字符串。 public static string ReplaceSQLChar(string str) { if (str == String.Empty) re... 阅读全文

posted @ 2009-02-13 11:23 chaoliu 阅读(441) 评论(0) 推荐(0) 编辑

摘要: Vs2005里面的,查询12000条记录,设置RemotingFormat = SerializationFormat.Binary; 再序列化,通过WebService传输,客户端接收,再反序列化,确实效果大大的优于直接传送DataSet,不仅网络传输中如此,即使本机,性能改善也非常明显. 下面分别是WebService里面的方法和客户端反序列化取DataSet的方法. 1. 服务器上面取数据... 阅读全文

posted @ 2009-02-13 11:22 chaoliu 阅读(250) 评论(0) 推荐(0) 编辑

摘要: 在2.0 中对数据集序列化和反序列化的方法进行了一下简单的封装,使其可以得到重用的效果.见下面的类DatFormatter. 通 过GetBinaryFormatData方法可以转换数据集为二进制,在服务器端使用,转换数据集格式。发送,客户端接收,得到二进制格式数据,使用 RetrieveDataSet方法,反序列化,得到数据集,进行客户端操作。通过这些简单的操作(序列化和反序列化,将数据压缩... 阅读全文

posted @ 2009-02-13 11:22 chaoliu 阅读(1133) 评论(0) 推荐(0) 编辑

摘要: 发送页面:Temp.aspx 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.WebCo... 阅读全文

posted @ 2009-02-13 11:21 chaoliu 阅读(159) 评论(0) 推荐(0) 编辑

摘要: HttpWebRequest 是 .net 基类库中的一个类,在命名空间 System.Net 下面,用来使用户通过 HTTP 协议和服务器交互。 HttpWebRequest 对 HTTP 协议进行了完整的封装,对 HTTP 协议中的 Header, Content, Cookie 都做了属性和方法的支持,很容易就能编写出一个模拟浏览器自动登录的程序。 程序使用 HTTP 协议和服务器交... 阅读全文

posted @ 2009-02-13 11:20 chaoliu 阅读(163) 评论(0) 推荐(0) 编辑

摘要: URL重写 例如配置文件中这么写 实际的意思就是 virtualUrl:如果遇到了www.217788.com/s/access.html这样的虚拟网页 destinationUrl:均会被解释成为www.217788.com/s/Serach.aspx?ID=access这样的实际网页 其中的(.+)就表示为任何字符 阅读全文

posted @ 2009-02-13 11:19 chaoliu 阅读(185) 评论(0) 推荐(0) 编辑

摘要: string url = "http://www.217788.com/send.aspx?from=" + TextBox1.Text.Trim() + "&to=" + TextBox2.Text + "&body=" + TextBox4.Text; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); ... 阅读全文

posted @ 2009-02-13 11:19 chaoliu 阅读(461) 评论(0) 推荐(0) 编辑

摘要: using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Net.Mail; using System.Net; using System.Threading; namespace com.XXX.SPMS.Common ... 阅读全文

posted @ 2009-02-13 11:18 chaoliu 阅读(266) 评论(0) 推荐(0) 编辑

摘要: onkeyup="value=value.replace(/[^"d".]/g,'')" 阅读全文

posted @ 2009-02-13 11:17 chaoliu 阅读(159) 评论(0) 推荐(0) 编辑

摘要: 1,不按照比例的缩放 2,按照比例的缩放 阅读全文

posted @ 2009-02-13 11:16 chaoliu 阅读(706) 评论(0) 推荐(0) 编辑

摘要: 1.取消按钮按下时的虚线框 在input里添加属性值 hideFocus 或者 HideFocus=true 2.只读文本框内容 在input里添加属性值 readonly 3.防止退后清空的TEXT文档(可把style内容做做为类引用) 4.ENTER键可以让光标移到下一个输入框 5.只能为中文(有闪动) 6.只能... 阅读全文

posted @ 2009-02-13 11:16 chaoliu 阅读(193) 评论(0) 推荐(0) 编辑

摘要: 1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById("表单中元素的I... 阅读全文

posted @ 2009-02-13 11:15 chaoliu 阅读(285) 评论(0) 推荐(0) 编辑

摘要: .弹启一个全屏窗口 ; www.9545.com.cn 2.弹启一个被F11化后的窗口 ; www.9545.com.cn 3.弹启一个带有收藏链接工具栏的窗口 www.9545.com.cn 4.网页对话框 www.9545.com.cn http://www.9545.com.cn showModalDialog()或是showModele... 阅读全文

posted @ 2009-02-13 11:15 chaoliu 阅读(311) 评论(0) 推荐(0) 编辑

http://CC318.com