摘要:
1--从Table表中取出第m条到第n条的记录:(NotIn版本) 2 3SelectTOPn-m+1* 4FROMTable 5Where(idNOTIN(SelectTOPm-1idFROMTable)) 6 7 8--从TABLE表中取出第m到n条记录(Exists版本) 9 10SelectTOPn-m+1*FROMTABLEASaWhereNotExists 11(Select*From... 阅读全文
摘要:
网上收集的;收藏一下;public class XmlControl{protected string strXmlFile;protected XmlDocument objXmlDoc = new XmlDocument();public XmlControl(string XmlFile){//// TODO: 在这里加入建构函式的程序代码//try{objXmlDoc.Load(XmlFi... 阅读全文
摘要:
显示效果: 2007年2月28日星期三农历丁亥年正月十一 BLOG日历下面的农历是用以下内容经过处理的; <SCRIPTlanguage=JavaScript> functionRunGLNL(){ vartoday=newDate(); vard=newArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); varDDDD=(today.g... 阅读全文
摘要:
usingSystem; usingSystem.IO; namespace查看文件和子目录项目 { ///<summary> ///Class1的摘要说明。 ///</summary> classExploreFile { staticintdirCounter=1; staticintindentLevel=-1; staticintfileCounter=0; ///... 阅读全文
摘要:
方法A: usingSystem; usingSystem.Data; usingSystem.Configuration; usingSystem.Collections; usingSystem.Web; usingSystem.Web.Security; usingSystem.Web.UI; usingSystem.Web.UI.WebControls; usingSystem.Web.U... 阅读全文
摘要:
Default.aspx <%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"%> <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD... 阅读全文
摘要:
通过WebRequest创建一个请求后,你可以通过请求来获取HttpWebResponse。通过HttpWebResponse.StatusCode来判断当前错误,也可以得到一些精确的消息。代码详细列表:成员名称说明Continue等效于 HTTP 状态 100。Continue 指示客户端可能继续其请求。SwitchingProtocols等效于 HTTP 状态 101。SwitchingPro... 阅读全文
摘要:
privatestringGetClientIP() { stringresult=HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if(null==result||result==String.Empty) { result=HttpContext.Current.Request.ServerVariabl... 阅读全文
摘要:
usingSystem; usingSystem.IO; usingSystem.Text; usingSystem.Data; namespaceDbConvert { /********************************************************************************** * *功能说明:文件*作类 *作者: *版本: * ***... 阅读全文
摘要:
privateDateTimestartTime; privatevoidPage_Init(Objectsender,EventArgse) { startTime=DateTime.Now; } protectedoverridevoidRender(HtmlTextWriterwriter) { base.Render(writer); DateTimeendTime=DateTime.N... 阅读全文