且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Postbackurl无法在服务器上运行

更新时间:2023-02-23 08:09:42

尝试使用以下内容(假设您在网站根文件夹中有关于该页面)



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或右键单击 - &gt ;属性



找到 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.