Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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>
Posted
Updated 29-Mar-16 18:10pm

try with below ( assume your about page inside the web site root folder)

ASP.NET
<asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="~/About.aspx"> <asp:LinkButton>
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900