Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Problem with HyperLinks
5 replies. Latest Post by SteveWong on June 27, 2009.
(0)
azazel_bg
Member
0 points
3 Posts
06-26-2009 12:08 AM |
Hello,
I'm getting this error:
Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)Timestamp: Fri, 26 Jun 2009 03:59:02 UTCMessage: Unhandled Error in Silverlight 2 Application [HyperlinkButton_Navigate_Failed]Arguments:Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.40115.0&File=System.Windows.dll&Key=HyperlinkButton_Navigate_Failed at System.Windows.Controls.HyperlinkButton.Navigate() at System.Windows.Controls.HyperlinkButton.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)Line: 1Char: 1Code: 0URI: http://localhost:58599/Default.html
Any ideas?
Also how can I make silverlight stop disaper when I have to transfer in PHP from one page to another. It is a menu that I create. I don't understan why I can't use short path for NavigateUri? If I want to hyperlink I have to use the whole path and when it transfer on the next page I loose the menu
SteveWong
Contributor
6343 points
1,281 Posts
06-26-2009 1:13 AM |
Can you provide your code?
06-26-2009 2:03 AM |
Which part of the code?
I'm sending you only the hyperlinkbutton code now, if you need something more let me know.
<HyperlinkButton Height="30" HorizontalAlignment="Left" Margin="5,0,0,5" VerticalAlignment="Bottom" Width="90" Content="HyperlinkButton" Foreground="{x:Null}" Background="#00794747" Template="{StaticResource Home}"NavigateUri="..//main.php" TargetName="_self"/>
<HyperlinkButton Height="30" HorizontalAlignment="Left" Margin="98,0,0,5" VerticalAlignment="Bottom" Width="90" Content="HyperlinkButton" Foreground="{x:Null}" Background="#00794747" Template="{StaticResource Query}" NavigateUri="..//query.php" TargetName="_self"/>
<HyperlinkButton Height="30" HorizontalAlignment="Left" Margin="191,0,0,5" VerticalAlignment="Bottom" Width="140" Content="HyperlinkButton" Foreground="{x:Null}" Background="#00794747" Template="{StaticResource Profile}" NavigateUri="..//profile.php" TargetName="_self"/>
<HyperlinkButton Height="30" HorizontalAlignment="Left" Margin="334,0,5,5" VerticalAlignment="Bottom" Width="90" Content="HyperlinkButton" Foreground="{x:Null}" Background="#00794747" Template="{StaticResource Cargo}" NavigateUri="..//cargo.php" TargetName="_self" IsEnabled="False"/>
<HyperlinkButton Height="30" HorizontalAlignment="Left" Margin="640,0,0,5" VerticalAlignment="Bottom" Width="90" Content="HyperlinkButton" Foreground="{x:Null}" Background="#00794747" Template="{StaticResource Contacts}" NavigateUri="homtom.dyndns.org:8080/INTERSPED/contacts.html" TargetName="_new"/>
The menu is whit 5 buttons.
06-26-2009 2:41 AM |
OK..
change your ..//something.html to be /something.html
then
you are reminded that the something.html are referenced at the root of the page that you opened
for example you are running TestPage.aspx in Folder1, if you call something.html then plese make sure something.html is inside Folder1
06-26-2009 12:06 PM |
Ok, Now I get it....
Actually SilverLight is getting the server root directory for main directory from there I have to point the way.
Thanks That help.
Just one more issue. When I use the Hyperlink no matter to HTML or PHP on IE I'm getting white space beneat the menu and after that anything else!
How can I cut this whhite space? And this space is silverlight space.
06-27-2009 9:57 AM |
Oh sorry, can I have a printscreen from you?
maybe you can send to my email watercubic@hotmail.com