Postbackurl无法在服务器上运行 [英] Postbackurl not working on server

查看:101
本文介绍了Postbackurl无法在服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web应用程序从Visual Studio 2008迁移到Visual Studio 2013.



当应用程序移动到IIS 7时PostBackURL无法正常工作在本地计算机上正常工作



< asp:LinkBut​​ton ID =LinkBut​​ton4runat =serverPostBackUrl =../ About.aspx> < asp:LinkBut​​ton>



我尝试过:



< asp:LinkBut​​ton ID =LinkBut​​ton4runat =serverPostBackUrl =../ About.aspx> < asp:LinkBut​​ton>

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 the Design View of your aspx page, click the Linkbutton and view the properties panel ( press F4 or right click -> properties )

find the PostbackUrl 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 the Source view for the Postbackurl property value with correct syntax.

hope this helps.


这篇关于Postbackurl无法在服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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