我用asp.net中做了一个弹框的效果,可是却报错,应该显示“已到达最顶端,不能上移”,我用Response.Write('alert('已在最上端,不能上移!');')做的。
报异常:Sys.WebForms.PageRequestManagerErrorException:The message received from the server could not be parsed
报异常:Sys.WebForms.PageRequestManagerErrorException:The message received from the server could not be parsed
解决方案 »
- update 一个有反应,一个没有 怎么回事
- 关于ASP.NET cookie的 问题
- asp.net类库中如何访问另一个类的成员变量
- 推荐一款在线编辑器.
- 求教,属性问题
- 我该如何在一个页面里声明一个另外一个页面对象的引用?
- 继续弹出页面的问题!怎么才能实现点击datagrid中的一项,弹出没有地址栏,工具栏的页面??
- 流水号生成问题
- 水晶报表的问题:在windows 2000 server升級到windows 2003server後,原來在aspx網頁里能正常顯示的水晶報表出錯
- DataGrid 点击排序、分页按钮时居然不执行“SortCommand”“PageIndexChanged”!
- 如何生成一个只包含0和1的数组,要求1的个数可以定义。在线等。
- 将数据库取出的数据变化后,在绑定gridview
改为:
Response.Write("alert('已在最上端,不能上移!');")
注意引号
试试ScriptManager.RegisterStartupScript(this.page, typeof(Page), "RedirectTo",alert('已在最上端,不能上移!'), true);
用Page.RegisterStartScript也不行
用Page.RegisterStartScript也不行,可以考虑将Button按钮或是触发事件的按钮放到ContentTemplate外,然后用Trigger标签关联按钮id