Postbackurl无法在服务器上运行 [英] Postbackurl not working on server
问题描述
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>
推荐答案
尝试使用以下内容(假设您在网站根文件夹中有关于该页面)
try with below ( assume your about page inside the web site root folder)
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="~/About.aspx"> <asp:LinkButton>
尝试以下步骤
转到aspx页面的设计视图
,单击链接按钮并查看属性面板(按F4或右键单击 - > ;属性)
找到PostbackUrl
属性并单击旁边的按钮[..] 。
在弹出窗口中选择要导航的页面(根目录或其他文件夹),然后单击确定。
现在,您可以看到Postbackurl
属性的源视图
正确语法的价值。
希望这会有所帮助。
Try these steps
Go theDesign View
of your aspx page, click the Linkbutton and view the properties panel ( press F4 or right click -> properties )
find thePostbackUrl
property and click the button[..] next to it.
In the popup window select the page (root directory or in other folders ) which you want to navigate and click Ok.
Now you can see theSource view
for thePostbackurl
property value with correct syntax.
hope this helps.
这篇关于Postbackurl无法在服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!