如何在不单击回发的情况下在单击按钮时重定向到同一页面区域? [英] how to redirect on same page area on button click without postback?

查看:91
本文介绍了如何在不单击回发的情况下在单击按钮时重定向到同一页面区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在单击按钮时,我希望用户被重定向到同一页面中的某些特定区域.我知道可以通过使用锚标记来完成,但是不确定使用asp.button怎么可能.在单击按钮时,我希望用户重定向到占位符.请指导我如何执行此操作.

On clicking button I want users to be redirected to some specific area in same page. I know it can be done with using anchor tags but not sure how will it possible with asp.button. On clicking button I want the user to redirect to a place holder. Please guide me how to do this.

谢谢

推荐答案

使用< a href =#xxx"> 标记,其中 xxx 是一个< a name ="xxx"> 标签在页面中的某处.

Use an <a href="#xxx"> tag, where xxx is an <a name="xxx"> tag somewhere in your page.

这篇关于如何在不单击回发的情况下在单击按钮时重定向到同一页面区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆