当前位置: 代码迷 >> ASP.NET >> 服务器按钮页面跳到指定的位置解决思路
  详细解决方案

服务器按钮页面跳到指定的位置解决思路

热度:5358   发布时间:2013-02-26 00:00:00.0
服务器按钮页面跳到指定的位置
服务器按钮当发生onclick事件后,页面跳到指定的位置,怎么样实现?


------解决方案--------------------------------------------------------
Button1.Attributes.Add( "onclick ", "top.location.href = 'WebForm.aspx/#A1 ' ");
A1是锚。
  相关解决方案