回发网址 [英] postback URL

查看:58
本文介绍了回发网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想使用一个链接按钮,该按钮将重新加载并在同一页面显示中显示另一个网页

Hey All

I want to use a link button that will reload and display another web page on my same page display

<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/uploaderNew.aspx">Sri Lanka Law Reports</asp:LinkButton>



上面是我的代码,对吗?



above is my code, is this right?

推荐答案

如果页面中有两个linkBut​​ton,一个是PostBackUrl,另一个具有on click事件,那么linkbutton就有postbackurl , 这是行不通的.因此,将PostBackUrl链接按钮更改为超链接或其他.
If there are two linkButton in a page, one is PostBackUrl & other has on click event, then the linkbutton has postbackurl, it does not work. So, change the PostBackUrl linkbutton to hyperlink or others.


为什么要使用链接按钮?如果要显示其他页面,请减少服务器端处理并使用超链接..
Why do you want to use a linkbutton? if you want to display another page, cut out the serverside processing and use a hyperlink..


这篇关于回发网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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