本文介绍了Postbackurl无法在服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Web应用程序从Visual Studio 2008迁移到Visual Studio 2013.
当应用程序移动到IIS 7时PostBackURL无法正常工作在本地计算机上正常工作
< asp:LinkButton ID =LinkButton4runat =serverPostBackUrl =../ About.aspx> < asp:LinkButton>
我尝试过:
< asp:LinkButton ID =LinkButton4runat =serverPostBackUrl =../ About.aspx> < asp:LinkButton>
Web Application is migrated from Visual Studio 2008 to Visual Studio 2013.
PostBackURL not working when application moved to IIS 7 works fine on local machine
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="../About.aspx"> <asp:LinkButton>
What I have tried:
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="../About.aspx"> <asp:LinkButton>
推荐答案
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="~/About.aspx"> <asp:LinkButton>
这篇关于Postbackurl无法在服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!