随笔分类 -  AjaxPro,Jquery, ajax

ajax,AjaxPro,jquery 一些技巧和例子
文本框输入值从数据库中查询出匹配相等的数据,记忆文本框
摘要:JS: document.onkeydown=setCode;function setCode(){ if (event.keyCode==40) { var srcElem = document.activeElement var testval = srcElem.name; if(testval=="TextAdmissionDiagnosis") { document.getElementById("lsBoxInfo").focus(); } } if(event.keyCode==13) { event.returnValue = false 阅读全文

posted @ 2011-09-09 10:36 张宏宇 阅读(427) 评论(0) 推荐(0)

HttpSessionStateRequirement.ReadWrite 和HttpSessionStateRequirement.Read 属性
摘要:[AjaxMethod(HttpSessionStateRequirement.ReadWrite)] // 读写Session:或[AjaxMethod(HttpSessionStateRequirement.Read)] // 只读Session: 【服务器端】[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]public string getTest(){Hashtable hash = (Hashtable)HttpContext.Current.Session["UserName" 阅读全文

posted @ 2011-09-08 09:18 张宏宇 阅读(940) 评论(0) 推荐(0)

ASP.NET清除页面缓存
摘要:ASP.NET清除页面缓存 (1) Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "No-Cache"); (2) HTML方法 <HEAD> <META HTTP-EQUIV="Pragma" CO 阅读全文

posted @ 2011-06-21 14:42 张宏宇 阅读(1948) 评论(0) 推荐(0)

解决UpdatePanel无刷新,注册客户端脚本不执行问题
摘要:ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.CurrentHandler, typeof(System.Web.UI.Page), "ShowMessage", "RM0101.Inint();", true); ScriptManager.RegisterClientScriptBlock... 阅读全文

posted @ 2010-06-21 11:05 张宏宇 阅读(300) 评论(0) 推荐(0)