IT
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 55 下一页
摘要: 把browser.allTabs.previews设为true点击标签栏最右边的按钮会显示所有标签缩略图。 阅读全文
posted @ 2010-12-23 09:56 liufei 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //上传 protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { string fileContentType = FileUpload1.PostedFile.ContentType; if (fileContentType == "image/bmp" || fileContentType == "image/gif" || fileContentType == "image/pjpeg") { string name = FileUpload1.PostedFile.Fil 阅读全文
posted @ 2010-12-23 09:55 liufei 阅读(293) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.OleDb;using System.IO;na... 阅读全文
posted @ 2010-12-23 09:55 liufei 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 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 System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Collections.Generic;using System.Te 阅读全文
posted @ 2010-12-23 09:54 liufei 阅读(690) 评论(0) 推荐(0) 编辑
摘要: StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt");sw.WriteLine("追逐理想");sw.WriteLine("kzlll");sw.WriteLine(".NET笔记");sw.Flush();sw.Close();C#拷贝文件string OrignFile,NewFile;OrignFile = Server.MapPath(".")+"\\myText.txt";NewFile = Server.MapPath(".")+"\\myTextCopy.txt";File.Copy(Orign 阅读全文
posted @ 2010-12-23 09:53 liufei 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event.returnVal 鼠标位置 event.x event.y 窗体活动元素 document.activeElement 绑定事件 document.captureEvents(Event.KEYDOWN 阅读全文
posted @ 2010-12-23 09:52 liufei 阅读(241) 评论(0) 推荐(0) 编辑
摘要: inta=12345678;//格式为sring输出//Label1.Text=string.Format("asdfadsf{0}adsfasdf",a);//Label2.Text="asdfadsf"+a.ToString()+"adsfasdf";//Label1.Text=string.Format("asdfadsf{0:C}adsfasdf",a);//asdfadsf¥1,234.00adsfasdf//Label2.Text="asdfadsf"+a.ToString("C")+"adsfasdf";//asdfadsf¥1,234.00adsfasdfdoubleb=123 阅读全文
posted @ 2010-12-23 09:51 liufei 阅读(261) 评论(0) 推荐(0) 编辑
摘要: js部分(default.aspx)scriptvar xmlHttp; function CreateXMLHttpRequest() { if(window.XMLHttpRequest) { xmlHttp =new XMLHttpRequest(); }else if(window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") ; } } function login(){ CreateXMLHttpRequest(); //创建组建 var name=document.getElem 阅读全文
posted @ 2010-12-23 09:50 liufei 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 前言: 网管和黑客的斗争是永不会停息的,他们的关系就如同警察和小偷。在网络这个没有硝烟的战场上,谁的技术手段高明,谁的头脑灵活,谁虚心学习不断成长,谁就能立于不败之地。网管为了维护自己服务器的安全,黑客为了成功入侵一台服务器,他们使用工具是一种很简便、很省时间、很高效的做法,但你可曾想过很多问题其实不是我们想象的那么复杂,而且工具都是别人的,自己用着心里也不很舒服。防御也好入侵也好,我们能否利用最简单的办法达到自己的目的呢?答案是肯定的,熟练掌握一些和网络有关的DOS命令,就能让我们在DOS窗口下完成别人使用工具才能完成的工作。废话少说,follow me。 (说明一下,这篇本来是为了写利 阅读全文
posted @ 2010-12-23 09:49 liufei 阅读(176) 评论(0) 推荐(0) 编辑
摘要: VS系统通用快捷键:1、自动排版(类似VC6中的Alt+F8)编辑.格式化选定内容 Ctrl + K,Ctrl + F 根据周围的代码行,正确缩进选定的代码行。2、注释与去掉注释功能。编辑.注释选定内容 Ctrl + K,Ctrl + C 使用编程语言的正确注释语法将代码的当前行标记为注释。编辑.取消注释选定内容 Ctrl + K,Ctrl + U 从代码的当前行中移除注释语法。将插入点移动到文档中的下一个大括号处。编辑.转到大括号 Ctrl + ] 将插入点移动到文档中的下一个大括号处。编辑.向下滚动一行 Ctrl + 向下键 将文本向下滚动一行。仅可用于文本编辑器。编辑.向上滚动一行 Ct 阅读全文
posted @ 2010-12-23 09:48 liufei 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 55 下一页