This is a migrated thread and some comments may be shown as answers.

ButtonClick to website

3 Answers 25 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Grtjn
Top achievements
Rank 1
Grtjn asked on 08 Apr 2010, 11:33 AM
Hi,

Does anyone know how I can navigate to a website when clicking on a button.
I am totally new to Silverlight and C#, so I really need some help!

I have a button with a clickevent. But I have no idea what to set in this event...

Kind regards

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 08 Apr 2010, 11:35 AM
Hi Grtjn,

Please check this blog post:
http://www.silverlightshow.net/items/The-Silverlight-3-Navigation-Framework.aspx

Please let us know if you have any other questions/comments.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Grtjn
Top achievements
Rank 1
answered on 08 Apr 2010, 01:41 PM
I simply used a hyperlinkbutton :)
0
Jim Daly
Top achievements
Rank 1
answered on 19 Apr 2010, 08:23 PM
If you really want to stick to a Button, in its Click event handler you could do something like this:

var uri = new Uri(myUrl, UriKind.Absolute);
HtmlPage.Window.Navigate(uri, "_blank");
Tags
Buttons
Asked by
Grtjn
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Grtjn
Top achievements
Rank 1
Jim Daly
Top achievements
Rank 1
Share this question
or