It threw browser exception saying InvalidOperationException. This was the code which I was using
<HyperlinkButton x:Name=”lnkSports” Content="Sports Page"
NavigateUri="http://easports.com" Grid.Row="0" Grid.Column="1"/>
It happens because HyperlinkButton expects its NavigateUri property to be of type System.Uri rather than System.String
lnkSports.NavigateUri=new Uri("http://easports.com");
So a simple creation of Uri object in the code behind helped to solve this problem as shown above
No comments:
Post a Comment