locked
How to use silverlight 2 Hyperlink Button to call aspx page in project or any way to navigate like response .redirect RRS feed

  • Question


  • How to use silverlight 2 Hyperlink Button  to call aspx page in project or any way to navigate like response .redirect 
    Thursday, September 4, 2008 11:32 AM

Answers

  • Hi Lacrymosa,

    You would require the absolute path of the aspx page. Add this line of code in the Click event for the Silverlight Hyperlink Button:

    HtmlPage.Navigate("http://expression.microsoft.com/en-us/default.aspx", "Expression Community");

    Hope this help! If this answered your question please mark it as answered :)

    -
    • Proposed as answer by Kok Chiann Friday, September 5, 2008 3:36 AM
    • Marked as answer by Lacrymosa Friday, September 5, 2008 1:58 PM
    • Unmarked as answer by Lacrymosa Friday, September 5, 2008 1:58 PM
    • Marked as answer by Lori DirksModerator Thursday, February 24, 2011 9:50 PM
    Friday, September 5, 2008 3:36 AM

All replies

  • Hi Lacrymosa,

    You would require the absolute path of the aspx page. Add this line of code in the Click event for the Silverlight Hyperlink Button:

    HtmlPage.Navigate("http://expression.microsoft.com/en-us/default.aspx", "Expression Community");

    Hope this help! If this answered your question please mark it as answered :)

    -
    • Proposed as answer by Kok Chiann Friday, September 5, 2008 3:36 AM
    • Marked as answer by Lacrymosa Friday, September 5, 2008 1:58 PM
    • Unmarked as answer by Lacrymosa Friday, September 5, 2008 1:58 PM
    • Marked as answer by Lori DirksModerator Thursday, February 24, 2011 9:50 PM
    Friday, September 5, 2008 3:36 AM
  •  Hi KokChiann

    thank u for replying to my problem..
    here is wat i am trying to do..... I have this navigation bar with all these fancy buttons done in silverlight2 using expression blend 2.5 june preview & I want use that in my Asp.net Project as navigation bar to call different aspx pages in my project.
    the solution u gave me is not working because i think i am missing a namespace or something for Htmlpage.navigate
    & can i give absolute path like "C:\poc\default.aspx" in that HtmlPage.Navigate
    Friday, September 5, 2008 6:39 AM
  • Hey KOKChiann

    Its Working

    HtmlPage.Window.Navigate(new Uri("http://localhost:1780/MusicAlbum.aspx"));
    Thank You!.ALL

    • Marked as answer by Lacrymosa Friday, September 5, 2008 1:58 PM
    • Unmarked as answer by Lori DirksModerator Thursday, February 24, 2011 9:50 PM
    Friday, September 5, 2008 1:50 PM
  •  Hey KOKChiann

    Its Working

    HtmlPage.Window.Navigate(new Uri("http://localhost:1780/MusicAlbum.aspx"));
    Thank You!.ALL

    Friday, September 5, 2008 1:51 PM
  • can i pass query string parameters iwanna pass a sharepoint url with parameters from silvelight application
    Wednesday, October 6, 2010 5:27 PM