摘要:
直接上代码: 页面:Index.aspx Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 2 3 4 5 ... 阅读全文
摘要:
这是我以前刚学习asp.net ajax的时候总结的,如果有什么错误的地方,请大家指出,以便我能早日改正。 1. 作用: UpdatePanel控件用来控制页面的局部更新,这些更新依赖于ScriptManager的EnablePartialRendering属性,如果此属性设为false,则局部更新将失去作用。 2.基本结构: Code Code highli... 阅读全文
摘要:
方法1:用于UpdatePanel中: System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "", "alert('OK');", true); 方法2:在已呈现的页的顶部添加一个脚本块。 ClientScriptManager cs... 阅读全文