当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > asp.net ajax 使用updatepanel更新后的提示

ASP.NET
Web服务器控件:LinkButton控件
Web服务器控件:ListBox控件
Web服务器控件:ListItem控件
Web服务器控件:Literal控件
Web服务器控件:Panel控件
Web服务器控件:PlaceHolder控件
Web服务器控件:RadioButton控件
Web服务器控件:RadioButtonList控件
Web服务器控件:BulletedList控件
Web服务器控件:Style控件
Web服务器控件:Table控件
Web服务器控件:TableCell控件
Web服务器控件:TableRow控件
Web服务器控件:TextBox控件
Web服务器控件:XML控件
Validation服务器控件:CompareValidator控件
Validation服务器控件:CustomValidator控件
Validation服务器控件:RangeValidator控件
Validation服务器控件:RegularExpressionValidator控件
Validation服务器控件:RequiredFieldValidator控件

ASP.NET 中的 asp.net ajax 使用updatepanel更新后的提示


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 162 ::
收藏到网摘: n/a

  想实现这样一个简单的功能,却折腾了半天。原因是第一次使用asp.net Ajax,本来是不想使用的MS的。却想看看他的框架如何。
 
  使用Response.write (js) 会出错。找了一些文档来看,原来要使用ScriptManager的静态方法 RegisterStartupScript 来实现调用。不知为什么实例类型没有提供这种方法。害得我花了很多的时间。
 
  ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('保存成功')", true);看来以后有空要好好研究一下了。