文章分类 -  ASP.NET笔记

对ASP.NET的一些新的认识,记录下来
JS之open,showModalDialog,showModelessDialog
摘要:open:打开新页面showModalDialog:打开模式对话框showModelessDialog:打开非模式对话框openSyntax:oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])Parameters:sURLOptional. Stringthat specifies the URL of th... 阅读全文
posted @ 2010-05-20 16:57 carekee 阅读(1112) 评论(0) 推荐(0)
Sys.WebForms.PageRequestManagerErrorException:The message received from the server could not be parsed错误解决方法
摘要:因为用的是Ajax的 ScriptManager + UpdatePanel控件所以调用Response.Write(),Page.RegisterStartScript()等方法,就不行了需要调用Ajax本身的ScriptManager.RegisterStartupScript()方法;具体格式为:System.Web.UI.ScriptManager.RegisterStartupScrip... 阅读全文
posted @ 2010-05-20 16:00 carekee 阅读(3717) 评论(0) 推荐(2)
网页退出
摘要:<script language="javascript"> var bClosing = true; function document.onclick() { var e = event.srcElement; if (e.tagName == "A" || (e.tagName == "INPUT" && e.type == "submit")) bClosin... 阅读全文
posted @ 2010-02-23 13:03 carekee 阅读(384) 评论(0) 推荐(0)