摘要: 页面:<a href="#" onclick="openCalender()">查询规则</a> <div id="Calender_Div" style="display: none; z-index: 101; left: 620px; width: 250px; position: absolute; top: 56px; height: 243px; back...
阅读全文
摘要: SELECT replace(replace(replace(CONVERT(varchar(19),getdate(),120),' ',''),'-',''),':','')结果:20090629111436
阅读全文
摘要: 选择时间://array=theFrm.TxtArrivalTime.value.split(' ');//var cYear = array[0].split('-')[0];//var cMonth = array[0].split('-')[1];//var cDate = array[0].split('-')[2];//var cDay = array[1].split(':')[0];...
阅读全文
摘要: 定义:String.prototype.trim = function(){return this.replace(/(^\s*)|(\s*$)/g,"");};使用:obj.Port_Code.trim()String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g,"");}使用方法:document.get...
阅读全文
摘要: 前台:<iframe id="hz1" runat="server" src="" style="width: 70%; height: 200px" scrolling="auto" frameborder="no" visible="false"></iframe>后台:hz1.Attributes["src"] = "TreeListNode1.aspx";
阅读全文
摘要: 方式一:后台:System.Web.UI.ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "提示", "Topen();");js:<script language="javascript" type="text/javascript">function Topen() { window.open ("...
阅读全文
摘要: A页面://跳转至旧版保存cookies Response.Cookies["userName"].Value = obj2.Get("Sus_userFID").ToString(); Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1); B页面:if (Request.Cookies["userName"] != nul...
阅读全文
摘要: 在首页中加入<script language="javascript" type="text/javascript"> if(self!=top) top.location=self.location; </script>
阅读全文