ButtonClick to website

4 posts, 0 answers
  1. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 08 Apr 2010 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 08 Apr 2010 Link to this post

    I simply used a hyperlinkbutton :)
  5. Jim Daly
    Jim Daly avatar
    13 posts
    Member since:
    Apr 2010

    Posted 19 Apr 2010 Link to this post

    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");
Back to Top