摘要: 1.WinHTTrack Website Copier2 wget
阅读全文
摘要: 原文http://www.codeproject.com/KB/aspnet/Page_Life_Cycle_Explain.aspx Stage Events/Method Initialization of the page Page_Init Loading of the View State LoadViewState Processing of the Postback data LoadPostData Loading of Page Page_Load Notification of PostBack RaisePostDataChangedEvent Handling of .
阅读全文
摘要: 一 js先看一个示例用javascript获取url网址信息<script type="text/javascript">document.write("location.host="+location.host+"<br>");document.write("location.hostname="+location.hostname+"<br>");document.write("location.href="+location.href
阅读全文
摘要: 本文讲一下SQL跨数据库读取数据的方法,应该很多人都知道吧,本文就简单说一下。--创建链接服务器exec sp_addlinkedserver 'srv_lnk', ' ', 'SQLOLEDB ', '121.52.215.250' exec sp_addlinkedsrvlogin 'srv_lnk', 'false ',null, 'sa ', '12345678' go --导入示例SET IDENTITY_INSERT MN_ExamPaper ON--IN
阅读全文
摘要: -------记一下,省的忘记。在VS2008命令控制台下,执行installitil.exe1. 注册Windows服务C:"WINDOWS"Microsoft.NET"Framework"v2.0.50727>installutil @fileName2. 卸载Windows服务C:"WINDOWS"Microsoft.NET"Framework"v2.0.50727>installutil /u @fileName@fileName是Winfows服务文件路径和文件名如:c:\MyService.
阅读全文
摘要: 用贯了Iis6 ,Iis七还真玩不转。 好多功能找不到。在家里的机器上mvc部署的没有问题,公司的机器怎么也搞不定。Google 下终于解决了,http://www.dev-club.net/xiangxixinxi/1086982010072905531533/201103250441361.html------------------------------------------------今天在移植项目的时候遇到一点小小的问题,MVC在IIS7上总是部署不成功,经摸索原来是IIS和.Net Framew 安装的顺序引起的问题。 在这里记录下来备忘。 1.如果项目是用.Net Framw
阅读全文
摘要: View Code //下载的四种方法protectedvoidButton1_Click(objectsender,EventArgse){//TransmitFile实现下载/**//*微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite下载超过400mb的文件时导致Aspnet_wp.exe进程回收而无法成功下载的问题。代码如下:*/Response.ContentType="application/x-zip-compressed";Response.AddHeader("Content-D
阅读全文
摘要: 思路 cmd 调用GUI截图工具代码如下public string ExeCommand(string commandText) { Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true
阅读全文
摘要: 之前搭建过次,现在在公司重新搭建,问题不少,在线安装的网站都被GFW屏蔽了。大致步骤:1 安装JDK2.现在Eclipse android SDK3 安装ADT (无法在线安装只能手动安装)方法如下ADT下载地址:http://download.csdn.net/source/2640943#acomment手动的安装方法:我的MyEclipse的plugins目录“D:\MyEclipse 7.0M1\eclipse\plugins\”解压ADT-0.9.7.zip文件,只 复制plugins下的两个jar文件 (com.android.ide.eclipse.adt_0.9.7.v201.
阅读全文
摘要: 真折腾人!记下。昨天晚上,网线掉了几次,然后就上不去网了,自动分配ip后 ,ip变为169.*,*,* 掩码 255.255.0.0用ipconfig / release renew 怎么也不行。直接设IP地址也不行。在网上找了半天终于找到解决方法。tcp/ip协议出问题了,重装之后解决,现把解决方法附上:1、开始——运行——regedit.exe,打开注册表编辑器,删除以下两个键:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinsockHKEY_LOCAL_MACHINE\System\CurrentControlSet\Ser
阅读全文