摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--staticintxValue(refintnum,refintnum2){num=2*num;num2=2*num2;returnnum;}staticvoidMain(string[]args){... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;usingSystem.Collections;... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.DirectoryServices;usingSyst... 阅读全文
摘要:
//添加应用程序池空间引用using System.DirectoryServices;代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--stringmethod="Start";//Start开启Recycle回收Stop停止stringAppPo... 阅读全文
摘要:
Global.asax需要添加的代码。利用我们了解当前页面的运行效率。 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidApplication_BeginRequest(Objectsender,EventArgse){A... 阅读全文
摘要:
c#读写xml文件已知有一个XML文件(bookstore.xml)如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?xmlversion="1.0"encoding="gb2312"?><bookstore><... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///判断一个字符串是否为合法整数(不限制长度)///</summary>///<paramname="s">字符串</param&g... 阅读全文
摘要:
前几天做页面,排好的html页面复制到aspx页面上就是会出现差异,比如字体定义无效,基本的表现就是怎么改样式都没显示或只有某些浏览器正常,搞了半天才发现是编码问题,DW默认新建的文件编码是gb2312的,vs默认是utf-8的,时间原因也没重新排,就在web.config的Configuration节点下对这个页面单独设置了编码。代码Code highlighting produced by A... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//实现黄底黑字的提示效果用ToolTip控件:privatevoidlistView1_MouseMove(objectsender,MouseEventArgse){ListViewItemite... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privateListViewlistView1;privatevoidInitializeListView1(){listView1=newListView();//Settheviewtodeta... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--CREATEFUNCTIONdbo.SplitString(@ExpressionNVARCHAR(4000),--要拆分的字符串@DelimiterNVARCHAR(100),--拆分符号@nINT... 阅读全文
摘要:
用游标,和WHILE可以遍历您的查询中的每一条记录并将要求的字段传给变量进行相应的处理==================代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--DECLARE@A1VARCHAR(10),@A2VARCHAR(10),@A... 阅读全文
摘要:
URL重写也就是让动态页面伪装成“静态页面”,一方面可以隐藏真实的页面文件地址,另一方面对被搜索引擎的也有好处。(在不支持URLWRITE.NET组件的空间里面这是最好的方法) 在ASP.NET中,使用Global.asax可以轻易的实现这个目的,原理简单,具体的代码一看便知:代码Code highlighting produced by Actipro CodeHighl... 阅读全文
摘要:
远程序桌面登录的.NET开发,可以使用MSTSCLib.dll和MsTscAxWrapper.dll两个转换过的动态库,而无需使用WINDOWS自带的OCX,因为使用OCX开发可以会遇到其它问题。 主要代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.co... 阅读全文