问题是解决了,如果不搞清楚我真的不甘心啊,恳请兄弟们帮帮忙啊! http://community.csdn.net/Expert/topic/3754/3754976.xml?temp=.8352014希望大家具体点,还有别的方法没?一定要给明解决的理由。拜托了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我现在就想知道Page.RegisterStartupScript(Guid.NewGuid().ToString().Trim(), "<script language='javascript'>window.location.href = window.location.href;</script>");中1、window.location.href = window.location.href这是什么意思。2、为什么这段代码用RegisterStartupScript注册了客户端脚本,我在页面中点查看源文件去看不到注册的客户端脚本。 1.window.location.href = window.location.href就是自身加载自身的意思,说白了就是在当前的状态下再加载一次,就不会有像按F5的那种把上次提交的数据再提交一遍的效果,2.当然看不到了,是在服务器端注册的 to :ccwq([Kiss Eash Not Teach]) 谢谢,RegisterStartupScript是在服务器端注册的,但是它注册的是客户端的脚本!请看:the RegisterStartupScript method places the JavaScript at the bottom of the ASP.NET page right before the closing </form> element. js调用后台代码 C# 验证码 数据库表很大,用什么控件呈现最合适? 如何用一个Radio和一个LinkButton,实现RadioButton的功能 请教高人,双语版网站怎么实现! 用sql保存图片路径后出现的问题 高手们,帮我看看这段代码!!感谢啊!! 关于嵌套使用用户自定义控件取值的问题 SQl问题 探讨一下DataSet对于大量的数量合不合适的问题,高手请进. 关于使用datagrid的update无反映问题问题 请教一个关于动态<title></title>的问题
Page.RegisterStartupScript(Guid.NewGuid().ToString().Trim(), "<script language='javascript'>window.location.href = window.location.href;</script>");
中
1、window.location.href = window.location.href这是什么意思。
2、为什么这段代码用RegisterStartupScript注册了客户端脚本,我在页面中点查看源文件去看不到注册的客户端脚本。
就是自身加载自身的意思,说白了就是在当前的状态下再加载一次,就不会有像按F5的那种把上次提交的数据再提交一遍的效果,
2.当然看不到了,是在服务器端注册的
请看:the RegisterStartupScript method places the JavaScript at the bottom of the ASP.NET page right before the closing </form> element.