摘要:
select * from tbName where datediff(hour, DateField, getdate()) <24 and datediff(minute, DateField, getdate())> 20 阅读全文
摘要:
/// <summary> /// 复制对象 /// </summary> /// <returns>返回它本身的一个副本</returns> public object GetCopy() { return MemberwiseClone(); } 阅读全文
摘要:
document.title //设置文档标题等价于HTML的title标签document.bgColor //设置页面背景色document.fgColor //设置前景色(文本颜色)document.linkColor //未点击过的链接颜色document.alinkColor //激活链接(焦点在此链接上)的颜色document.vlinkColor //已点击过的链接颜色documen... 阅读全文
摘要:
添加引用 using System.Net;using System.IO;private string GetPage(string uri) { CookieContainer cc = new CookieContainer(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); request.CookieCo... 阅读全文
摘要:
public static void ShowAndRedirect(System.Web.UI.Page page, string msg, string url) { StringBuilder Builder = new StringBuilder(); Builder.Append("<script type=\"text/javascript\">"); Builder.Ap... 阅读全文
摘要:
//上传图片 protected void BtnUpload_Click(object sender, EventArgs e) { //权限 //数据获取 //数据加工,输入、输出 string filename = ""; if (HiddenField_pic.Value.Trim() == "") filename = DateTime.Now.ToString("yyyyMMddhhm... 阅读全文
摘要:
scrollbar-shadow-color: #FFFFFF; scrollbar-highlight-color: #FFFFFF; scrollbar-arrow-color: #FFFFFF; scrollbar-face-color: #59ADBB; scrollbar-track-color: #FFFFFF; scrollbar-3dlight-color: #59ADBB; sc... 阅读全文
摘要:
1,刷新框架onload=function(){ try { parent.Link.location.reload(); } catch(e) { }}父框架parent.location.href=parent.frames["right"].location.href;2,获取URL并字符处理var url=parent.frames["right"].location.href;//doc... 阅读全文
摘要:
普通页面判断加载完毕<script type="text/javascript">document.write('<div id="loadDiv" style="font-size: 14px;font-weight:bold; color:#0099cc;left: 50%;position: absolute;top:40%;"><img src="loadin... 阅读全文
摘要:
以下为JS获取几种URL地址的方法thisURL = document.URL;thisHREF = document.location.href;thisSLoc = self.location.href;thisDLoc = document.location;thisTLoc = top.location.href;thisPLoc = parent.document.location;th... 阅读全文