Won't Fix
Last Updated: 22 Jan 2020 13:40 by Peter
ADMIN
Misho
Created on: 08 Mar 2016 07:08
Category: Button
Type: Feature Request
1
An error is thrown when RadButton NavigateUrl is defined with tilde
An error is thrown when RadButton NavigateUrl is defined in content page with tilde and the master page is up one level.

Workaround: Remove the tilde from the navigate url.
1 comment
Peter
Posted on: 22 Jan 2020 13:40

Another workaround is setting the NavigateURL on RadButton_Load event:

protected void RadButtons_Load(object sender, EventArgs e)
{
    (sender as RadButton).NavigateUrl = this.ResolveUrl((sender as RadButton).NavigateUrl);
}
<telerik:RadButton runat="server" ID="RadButton1" ButtonType="StandardButton" NavigateUrl="~/App/Home.aspx" Text="Home" OnClick="RadButton1_Click" OnLoad="RadButtons_Load" AutoPostBack="true" />