To fix the problem with relative URLs (e.g. ~/Foo/Bar.aspx), use much the same solution as another poster pointed out above.
- Download RibbonBarApplication-ASP.NET_AJAX.zip (link is at the top) and extract it. As of this writing it should extract to a folder called 087839_RibbonBarApplication-ASP.NET_AJAX
- Open the solution in Visual Studio (I use VS 2005).
- Put your licensed binaries from your telerik ajax controls directory (e.g. C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Bin )
- Open RussellMason.Web.Applicaton/Web/UI/Office2007/RibbonButton.cs
- Go to line 469 or thereabouts
- Change the following line:
string
.Format("window.open('{0}', '{1}');", this.NavigateUrl, target);
to this:
string.Format("window.open('{0}', '{1}');", this.ResolveUrl(this.NavigateUrl), target);
-
In Visual Studio, go to Build > Configuration Manager and change the Active Solution Configuration to Release, check the Build box nex to RussellMason.Web.Application and make sure it'set to Release and Any CPU.
-
Build the solution.
-
NavigateURL should now work properly.
Thanks to Telerik for an ASP.Net-AJAX update to this project, to Russell Mason for developing it, and to Chuanbo for pointing out the ResolveURL fix.
This Office2007 implementation is wonderful and is a joy to use.