摘要:在之前的1.1版本中,如果要往新建的线程中传入参数会是一件有点麻烦的事情,到了2.0中,由于有了“ParameterizedThreadStart 委托 ”的加入,使参数的传入变得简单起来。 static void Main(string[] args) { Program instance = new Program(); Thread ...
阅读全文
摘要:写入时:HttpCookie cookie = new HttpCookie("cookie1");cookie.Value = Server.UrlEncode(strValue);Response.Cookies.Add(cookie); 读出时:string result = Server.UrlDecode(Request.Cookies["cookie1"].Value)
阅读全文
摘要:1 Response.ClearContent(); 2 Response.ClearHeaders(); 3 Response.ContentType = contentType; 4 //Response.ContentEncoding = System.Text.Encoding.UTF8; 5 //Response...
阅读全文
摘要:function GetQueryValue(searchUrl,queryStringName) { /**//*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CopyRight: 网络有限公司 Joysos.Com Desc...
阅读全文
摘要:早上的时候去参加一个网络方面的竞赛考试,理论部分的答题还马马虎虎,到了操作部分就考得一塌糊涂,有很多的关于综合布线和线路方面的东西,自己了解得都不是很清楚。提交试卷之后看到一个很尴尬的分数,这里不说了。 其实也并不是什么很重要的考试,但确确实实因为这件事而影响到了自己的心情。也不是为了结果,只是很直接地对自己感觉到了失望。想想自己在前一年这么一段时间里面究竟都做了些什么,在大学的那段时间里面...
阅读全文
摘要:首先在代码中加入如下方法: /// /// 设置在页面回车时触发事件的控件 /// /// 将触发事件的控件对象 public static void SetEnterControl(System.Web.UI.Control Ctrl) { Page mPage = Ctrl.Page; string mScript; mScript = @""; ...
阅读全文