Page.RegisterStartupScript("", "<script>location.href=location.href;</script>");
对于上面的代码,VS2008老是提示我
警告 1 “System.Web.UI.Page.RegisterStartupScript(string, string)”已过时:“The recommended alternative is ClientScript.RegisterStartupScript(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202”
对于上面的代码,VS2008老是提示我
警告 1 “System.Web.UI.Page.RegisterStartupScript(string, string)”已过时:“The recommended alternative is ClientScript.RegisterStartupScript(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202”
解决方案 »
- 如何模拟Windows窗口和拖动
- ●★在repeater的template中加入控件,并绑定datatable,但无法得到控件绑定数据的值?
- gridView自定义超级链接列的下划线的问题
- INSERT 语句中列的数目小于 VALUES 子句中指定的值的数目。
- 在.net中,如何通过checkbox控键来使textbox控键无效?------请各位高手帮帮忙忙!
- —————关于动态菜单的思路,请给位前辈指点
- 都有哪些好的js日历啊
- datagrid的页眉如何做成两头有点圆的圆角矩形,不然方方正正的矩形有点死板。
- 用forms验证怎样可以动态设置cookies过期时间啊,急!
- 使用ASP.NET开发web service是不是一定要在win2000 server上?
- 用控件的Display=none或block属性隐藏控件,显示问题,请大侠赐教!
- GridView1_RowCommand获取Datakey.(前提:不使用e.CommandArgument.ToString())
呵呵
用ClientScript.RegisterStartupScript试一试
看到一个页面的最上面的这个标记么,就是这个东西有几个版本,如果你的这个声明太高了,但是你写的html代码却过时了,与声明的不同,不能通过声明的html规范的检查,就会提示你说的那个错误了。
html规范的版本详情请到www.w3.org去看看。这里是XHTML 1.0 Transitional