Skip to main content

Microsoft Silverlight

Answered Question Problem with HyperLinksRSS Feed

(0)

azazel_bg
azazel_bg

Member

Member

0 points

3 Posts

Problem with HyperLinks

Hello,

I'm getting this error:

 

 Webpage error details

User 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 UTC


Message: 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: 1
Char: 1
Code: 0
URI: 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
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Problem with HyperLinks

Can you provide your code?

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

azazel_bg
azazel_bg

Member

Member

0 points

3 Posts

Re: Problem with HyperLinks

 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.

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Answered Question

Re: Re: Problem with HyperLinks

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

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev

azazel_bg
azazel_bg

Member

Member

0 points

3 Posts

Re: Re: Problem with HyperLinks

 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.

SteveWong
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Re: Re: Problem with HyperLinks

Oh sorry, can I have a printscreen from you?

maybe you can send to my email watercubic@hotmail.com

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities