OlympicNigel
asked on
USe email within SIlverlight OOB app
Im trying to open the default email client on a users system from a SL OOB application.
I have tried this:
<HyperlinkButton NavigateUri="mailto:email@ address.co m" Content="HyperlinkButton" Height="23" HorizontalAlignment="Left" Margin="72,114,0,0" Name="HyperlinkButton2" VerticalAlignment="Top" Width="100" />
Which from my web readings should work but for me it throws a page not found error.
Does anyone have any idea why this might not be working for me.
Thanks
Nigel
I have tried this:
<HyperlinkButton NavigateUri="mailto:email@
Which from my web readings should work but for me it throws a page not found error.
Does anyone have any idea why this might not be working for me.
Thanks
Nigel
to your .xaml.vb
Imports System.Windows.Browser
HtmlPage.Window.Navigate(N ew Uri("mailto:test@test.com" ))
Imports System.Windows.Browser
HtmlPage.Window.Navigate(N
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@ dj_alik: your method threw an exception "The DOM/scripting bridge is disabled"
@CodeCrusier: your method worked like a charm.
Thanks for your help guys. I can't believe it was something so simple that I was unable to find anywhere else.
Thanks EE :-)
@CodeCrusier: your method worked like a charm.
Thanks for your help guys. I can't believe it was something so simple that I was unable to find anywhere else.
Thanks EE :-)
Add the below line to your .xaml.cs file to open mailto (email link) when an event gets fired (i.e. HyperlinkButton is clicked or etc):
HtmlPage.Window.Navigate(n