更新时间: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或右键单击 - > ;属性)
找到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.