摘要:学习javascript,时常看看这个朋友的博客:http://hi.baidu.com/mataofq/blog/category/Javascript http://www.zzsky.cn/build/content/543.htm http://www.zzsky.cn/build/con...
阅读全文
摘要:转自:http://www.e-tgyy.com.cn/blog/user1/liuoemty/archives/2009/77183.html
阅读全文
摘要:duration表示特效的持续时间,以秒为单位。表示使用哪种特效,取值为1-23: 0 矩形缩小 1 矩形扩大 2 圆形缩小 3 圆形扩大 4 下到上刷新 5 上到下刷新 6 左到右刷新 7 右到左刷新 8 竖百叶窗 9 横百叶窗 10 错位横百叶窗 11 错位竖百叶窗 ...
阅读全文
摘要:18位身份证标准在国家质量技术监督局于1999年7月1日实施的GB11643-1999《公民身份号码》中做了明确的规定。 GB11643-1999《公民身份号码》为GB11643-1989《社会保障号码》的修订版,其中指出将原标准名称"社会保障号码"更名为"公民身份号码",另外GB11643-19...
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syst...
阅读全文
摘要:有什么问题请到论坛中发表1.首先在和之间插入下列代码 2.在body中的任意位置插入下列代码欢迎光临br>br>br>br>br>br>br>br>br>br>br> //转载请注明出处:网页教学网。
阅读全文
摘要:NS = (document.layers) ? 1 : 0;IE = (document.all) ? 1: 0;if(NS) {window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);window.onmousedown = grabIt;win...
阅读全文
摘要:当文件首部有这个DTD文件时,获取时要写成:document.documentElement.scrollTop如果没有时,可以写成:document.body.scrollTop即可
阅读全文
摘要:Math.ceil(x):比x大的最小值。 Math.round(x):四舍五入。 Math.floor(x):比x小的最大值。 Math.round(x)返回long型,其余的返回double 型
阅读全文
摘要:System.Net.WebClient client=new WebClient(); byte[] page=client.DownloadData("http://www.google.com"); string content=System.Text.Encoding.UTF8.GetSt...
阅读全文
摘要:About Oranges...一些文字...Oranges Are Tasty...更多文字... 使用一个内容空白的锚点标签再配上name属性,标记特定的链接点,或许这是你熟悉的方法,在标题前放一个内容空白的,并且连向它(使用#符号,后面加上name属性的值),就能让我们连到页面的特定部分了,...
阅读全文
摘要:一、音频文件上传和播放在网上找到一个名叫AspNetPager的第三方控件,将AspNetPager.dll文件引用到项目的Bin中。在网页中可直接调用。引用命名空间 using Telerik.WebControls;>>上传protected void Button1_Click(object...
阅读全文
摘要:<br><EMBED src="www4.jci.jx.cn/dq/rich_media/listen_to_mama.mp3" width=331 height=58 type=audio/x-pn-realaudio-plugin mime-types="mime.types...
阅读全文
摘要:在微软IE 5.0版本的浏览器发布以前,网页编程中面对的最大挑战就是不能轻易地创建组件,以达到代码重用和多页面共享的目的。这个问题一直困扰着DHTML(动态 HEML)的网页编程者。他们只能不断地重复书写HTML、CSS和javascript的代码,以满足多个页面上的重复或相似的功能。自IE 5....
阅读全文
摘要:SQL Native Client ODBC Driver 标准安全连接 Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; 您是否在使用...
阅读全文
摘要:http://www.cnblogs.com/jasononline/archive/2007/06/12/780717.html
阅读全文
摘要:首先来看MSDN中关于这个接口的说明:[ComVisible(true)]public interface IDisposable{// Methodsvoid Dispose();}1.[ComVisible(true)]:指示该托管类型对 COM 是可见的.2.此接口的主要用途是释放非托管资源...
阅读全文
摘要:JavaScript中有一个call和apply方法,其作用基本相同,但也有略微的区别。先来看看JS手册中对call的解释:call 方法调用一个对象的一个方法,以另一个对象替换当前对象。call([thisObj[,arg1[, arg2[, [,.argN]]]]])参数thisObj可选项...
阅读全文
摘要:http://tech.it168.com/zt/webservice/index.html
阅读全文
摘要:http://www.longen.org/s-z/details-z/SOAP.htm
阅读全文
摘要:1xx - 信息提示这些状态代码表示临时的响应。客户端在收到常规响应之前,应准备接收一个或多个 1xx 响应。 · 100 - Continue 初始的请求已经接受,客户应当继续发送请求的其余部分。(HTTP 1.1新) · 101 - Switching Protocols 服务器将遵从客户的请...
阅读全文
摘要:1.document.formName.item(itemName) 问题说明:IE下,可以使用 document.formName.item(itemName)或 document.formName.elements[elementName];Firefox下,只能使用 document.for...
阅读全文
摘要:page.ispostback 和page.iscallback 的主要区别:回传是人为地将表单提交至服务器,这是所谓的回传,而回调是通过异步调用clientscript.getcallbackreference()的这些异步方法来进行回调,进行回调时,页面是不进行刷新的。
阅读全文
摘要:来自MSDN:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Securit...
阅读全文
摘要:System.Net.Mail.SmtpClient client = new SmtpClient(); client.Host = "smtp.163.com"; client.UseDefaultCredentials = false; client.Credentials = new...
阅读全文
摘要:1、找寻支持QQ HTTP协议的服务器。大家也许会被一些假像所迷惑,也许会认为QQ的HTTP服务器是基于80口进行通信的(如:218.17.209.23:80),其实不然,正真基于HTTP的服务器应该是:http://tqq.tencent.com:8000,它是一个通过8000口进行通讯的服务器...
阅读全文
摘要:public void imgToDB(string sql) { //参数sql中要求保存的imge变量名称为@images //调用方法如:imgToDB("update UserPhoto set Photo=@images where UserNo='" + temp + "'");...
阅读全文
摘要:setTimeout (表达式,延时时间)setInterval(表达式,交互时间)延时时间/交互时间是以豪秒为单位的(1000ms=1s)setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次setInterval 在执行时,它从载入后,每隔指定的时间就执行一次...
阅读全文
摘要:string GetConnectionString() // To avoid storing the connection string in your code, // you can retrieve it from a configuration file. // If...
阅读全文
摘要:IServiceProvider provider=HttpContext.Current; HttpWorkerRequest worker =(HttpWorkerRequest)provider.GetService(typeof(HttpWorkerRequest)); Respons...
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Runtime.Serialization.Formatters.Binary;using System.IO;[Serializable]public c...
阅读全文
摘要:HttpWebRequest wr =(HttpWebRequest)WebRequest.Create("http://www.goole.cn"); HttpWebResponse wrp =(HttpWebResponse)wr.GetResponse(); if (wrp.Status...
阅读全文
摘要:HttpWebRequest httprequest = null; HttpWebResponse httpresponse = null; Stream sr = null; //try //{ httprequest = (HttpWebRequest)WebRequest.Cre...
阅读全文
摘要:一个文件上传的类 namespace Wmj { public class MyUpload { private System.Web.HttpPostedFile postedFile=null; private s...
阅读全文
摘要:基于http流上载: --------------------- private void cmdSendFileData_Click(object sender, System.EventArgs e) { ...
阅读全文
摘要:/// /// 获取源代码 /// /// /// /// public static string GetPage(string url, Encoding encoding) { ...
阅读全文
摘要:StreamReader sr = new StreamReader(Server.MapPath("~/images/LYF.jpg")); byte[] bytes=new byte[sr.BaseStream.Length]; sr.BaseStream.Read(bytes, 0,(i...
阅读全文
摘要:当我在一个WEB应用程序中, Application.Add("lxx", "lxx");在其它页面也能访问得到它。这是不是全局变量呢,应该是的
阅读全文
摘要:protected void Page_Load(object sender, EventArgs e) { this.Button1.Command+=new CommandEventHandler(Button1_Command); Application.Add("lxx", "lxx"...
阅读全文
摘要:privatestring getPinYin(string text){char pinyin;byte[] array; System.Text.StringBuilder sb = new System.Text.StringBuilder(text.Length); foreach(cha...
阅读全文
摘要:string m_boundaryStr = "\r\n--"+m_contentType.Substring(m_contentType.IndexOf("boundary=")+9); byte[] m_boundaryData = Encoding.ASCII.GetBytes(m_boun...
阅读全文
摘要:这次在项目中,用到了大文件上传,要上传的文件有100多m,于是研究现在国内使用的大文件上传的 组件发现用的比较多的有两个控件AspnetUpload 2.0和Lion.Web.UpLoadModule,另外还有思归在它的博客 堂中所说的办法 http://blog.joycode.com/sa...
阅读全文
摘要:DateTime.Now.ToString("yyMMddHHmmssfff")
阅读全文
摘要:private Boolean SaveFiles() { //得到File表单元素 HttpFileCollection files = HttpContext.Current.Request.Files; try { for(int intCount= 0; intCount< f...
阅读全文
摘要:System.Collections.Specialized.NameValueCollection namevalue=Request.Headers; if (namevalue != null) { //for (int i = 0; i "); //} foreach (stri...
阅读全文
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using...
阅读全文
摘要:http://www.cnblogs.com/evanescenceX/archive/2008/06/16/1222883.html
阅读全文
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syst...
阅读全文
摘要:XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath,"web.config")); XmlNod...
阅读全文
摘要:服务器送给客户端的数据包类型可以是text/html文本,也可以是gif/jpeg图形文件,所以每次传输前,我们都必须告知客户端将要传输的文件类型,一般默认情况下为“Text/Html”类型。ContentType类型 “.*“=“application/octet-stream““.001“=“...
阅读全文
摘要:含义 ENCTYPE="multipart/form-data" 说明: 通过 http 协议上传文件 rfc1867协议概述,jsp 应用举例,客户端发送内容构造1、概述在最初的 http 协议中,没有上传文件方面的功能。 rfc1867 (http://www.ietf.org/rfc/rfc...
阅读全文
摘要:一、Enum的定义 public enum UserRolesType { UnKnown=0, BaseSimple=70, BaseBasic=71, BaseExtend=72, BaseBasic2=88, BaseSimple2=89, BaseExtend2...
阅读全文
摘要:有时asp.net文件输出纯XML数据很有用,这时的asp.net文件就相当于一个WebService,输出XML文档也很简单,分以下几部1、设置输出类型-Response.ContentType = "text/xml";2、设置字符集-Response.Charset = "GB2312";3...
阅读全文