|
|
02 2009 档案
摘要:using mshtml; 这个要你手动添加引用出来 仔细找找。名字我一下也记不得了 然后 获得Ihtmldocument2 接口 IHTMLDocument2 doc = new HTMLDocumentClass(); doc.write(new object[] { html }); doc.close(); 再然后就和你用javascript类似了 foreach (IHT...
阅读全文
摘要:http://cc318.com 我的窝,包括了很多东西哦,有asp.net 源码,编程,教程,创业,还是美女图片,QQ空间代码
阅读全文
摘要:private static string[] wordListText; string[] tempWordListText = new string[] {"Alfa","Alpha"} Array.Sort(tempWordListText);排序 _document.Load(HttpContext.Current.Server.MapPath("~/App_Data/Car...
阅读全文
摘要:程序代码 RealMedia RealMedia & Windows Media Player 代码: 程序代码 Windows Media Windows Media &
阅读全文
摘要:增加字段 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 更改当前数据库中用户创建对象(如表、...
阅读全文
摘要:public void ExportResult(DataSet ds) { HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=Order.xls"); HttpContext.Current.Response.Clear(); ...
阅读全文
摘要:void sendmail() { System.Web.Mail.MailMessage msgMail = new System.Web.Mail.MailMessage(); //msgMail.To = "Order@labdelon-estore.com"; msgMail.To = "ppsetserver@hotmail.co...
阅读全文
摘要:public void Sender(MailMessage msg) { smtp = this.ExecuteScalar("select smtp from config").Trim(); uname = this.ExecuteScalar("select username from config").Trim() ; pwd = ...
阅读全文
摘要:/// /// 组合HTML编码的邮件正文 /// /// /// private string EnHtml(string PageUrl) { WebRequest request = WebRequest.Create(PageUrl); WebResponse response = request....
阅读全文
摘要:/// 过滤SQL字符。 /// /// 要过滤SQL字符的字符串。 /// 已过滤掉SQL字符的字符串。 public static string ReplaceSQLChar(string str) { if (str == String.Empty) re...
阅读全文
摘要:在2.0 中对数据集序列化和反序列化的方法进行了一下简单的封装,使其可以得到重用的效果.见下面的类DatFormatter. 通 过GetBinaryFormatData方法可以转换数据集为二进制,在服务器端使用,转换数据集格式。发送,客户端接收,得到二进制格式数据,使用 RetrieveDataSet方法,反序列化,得到数据集,进行客户端操作。通过这些简单的操作(序列化和反序列化,将数据压缩...
阅读全文
摘要:Vs2005里面的,查询12000条记录,设置RemotingFormat = SerializationFormat.Binary; 再序列化,通过WebService传输,客户端接收,再反序列化,确实效果大大的优于直接传送DataSet,不仅网络传输中如此,即使本机,性能改善也非常明显. 下面分别是WebService里面的方法和客户端反序列化取DataSet的方法. 1. 服务器上面取数据...
阅读全文
摘要:发送页面: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...
阅读全文
摘要:HttpWebRequest 是 .net 基类库中的一个类,在命名空间 System.Net 下面,用来使用户通过 HTTP 协议和服务器交互。 HttpWebRequest 对 HTTP 协议进行了完整的封装,对 HTTP 协议中的 Header, Content, Cookie 都做了属性和方法的支持,很容易就能编写出一个模拟浏览器自动登录的程序。 程序使用 HTTP 协议和服务器交...
阅读全文
摘要:URL重写 例如配置文件中这么写 实际的意思就是 virtualUrl:如果遇到了www.217788.com/s/access.html这样的虚拟网页 destinationUrl:均会被解释成为www.217788.com/s/Serach.aspx?ID=access这样的实际网页 其中的(.+)就表示为任何字符
阅读全文
摘要:string url = "http://www.217788.com/send.aspx?from=" + TextBox1.Text.Trim() + "&to=" + TextBox2.Text + "&body=" + TextBox4.Text; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); ...
阅读全文
摘要: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 ...
阅读全文
摘要:onkeyup="value=value.replace(/[^"d".]/g,'')"
阅读全文
摘要:1,不按照比例的缩放 2,按照比例的缩放
阅读全文
摘要:1.取消按钮按下时的虚线框 在input里添加属性值 hideFocus 或者 HideFocus=true 2.只读文本框内容 在input里添加属性值 readonly 3.防止退后清空的TEXT文档(可把style内容做做为类引用) 4.ENTER键可以让光标移到下一个输入框 5.只能为中文(有闪动) 6.只能...
阅读全文
摘要:1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById("表单中元素的I...
阅读全文
摘要:.弹启一个全屏窗口 ; 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...
阅读全文
摘要:NET牛人应该知道些什么? 任何一个使用.NET的人 描述线程与进程的区别? 什么是Windows服务,它的生命周期与标准的EXE程序有什么不同 Windows上的单个进程所能访问的最大内存量是多少?它与系统的最大虚拟内存一样吗?这对于系统设计有什么影响? EXE和DLL之间的区别是什么? 什么是强类型,什么是弱类型?哪种更好些?为什么? ...
阅读全文
摘要:C# code using System; using System.Diagnostics; using System.Threading; using System.Web; using System.Xml; using System.Text.RegularExpressions; namespace UrlWriter { /// /// HttpModule类(URL重写) /...
阅读全文
摘要:private void Button1_Click(object sender, System.EventArgs e) { string strContent = InputTextBox.Text; Regex urlregex = new Regex(@"(http:"/"/(["w.]+"/?)"S*)",RegexOpti...
阅读全文
摘要:关于获取各种浏览器可见窗口大小的一点点研究 在我本地测试当中: 在IE、FireFox、Opera下都可以使用 document.body.clientWidth document.body.clientHeight 即可获得,很简单,很方便。 而在公司项目当中: Opera仍然使用 document.body.clientWidth document.body.clientHeight 可是I...
阅读全文
摘要:asp.net源码下载,源码多,欢迎去论坛留言. eviuu.com 217788.com
阅读全文
摘要:发送页面: C# code string strXML = "test112"; System.Net.WebClient wc = new System.Net.WebClient(); byte[] bs = System.Text.Encoding.Default.GetBytes(strXML); byte[] bsReturn = wc.UploadData("http://...
阅读全文
摘要:因为安全性问题,IE7禁用了image控件引用本地图片,为了这个问题郁闷了好几天,终于找到了解决方案,好东西要与大家分享,代码如下: 此段代码放于 ....之间 内的代码
阅读全文
摘要:投机取巧的做法如下: C# code Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutpu...
阅读全文
摘要:随着Internet技术的发展和跨平台需求的日益增加,Web Services的应用越来越广,我们不但需要通过Web Services传递字符串信息,而且需要传递二进制文件信息。下面,我们就分别介绍如何通过Web Services从服务器下载文件到客户端和从客户端通过Web Services上载文件到服务器。 一:通过Web Services显示和下载文件 我们这里建立的Web Services的...
阅读全文
摘要:选项把文件设成嵌入式资源(点文件,右键) 然后: [assembly: WebResource(名称空间.JSResName, "application/javascript")] namespace 名称空间 { public class xxxx { public const string JSResName = "名称空间.放js文件的文件夹.calendar.js...
阅读全文
摘要:net1.1中如果需要灵活的操作和读写配置文件并不是十分方便,一般都会在项目中封装一个配置文件管理类来进行读写操 作。而在.net2.0中使用ConfigurationManager 和WebConfigurationManager类可以很好的管理配置文件,ConfigurationManager类在 System.Configuration中,WebConfigurationManager在Sy...
阅读全文
摘要:217788.com 各方面的IT信息, 其中asp.net 源码下载(新版), asp.net 源码下载(旧版), 程序资源网(各类程序语言), 生活健康网(提高您的生活质量), 创业联盟(激发您的创业斗志), 专业素材(为设计人员提供新动力)和英码程序源码,本站还建立一个217788讨论区(BBS),都是为IT人员专门设计. 我们相信:"只要你是IT人员.我们相信,我站的数据信息肯定能帮到...
阅读全文
摘要:1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1) 2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)...
阅读全文
|