url里锚点和input控件冲突

来源:互联网 发布:java 中getbean 编辑:程序博客网 时间:2024/06/04 23:28

我们常用用锚点对页面定位,如Helpdocument.htm#first

但是我发现如果一个页面(caller.aspx)有input控件且type是file,且runserver=“true”时,在该页面

Response.Redirect("Helpdocument.htm#first")。发现会过滤掉井号。

 

可以用js替换该语句来解决