Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i want to navigate from a silver light page to a .aspx page in the same root website .I use Hyperlink button in .xaml file and want to navigate on clicking of this button to .aspx file.



Plzz help me.

Thanks
Posted

On your button, add an event handler for the MouseLeftButtonUp event handler and do a browers Navigate.

Just include System.Windows.Browser namespace and in your code call
C#
HtmlPage.Navigate(MyURL);

where MyURL is your target. It's a static method, so you can call it from anywhere.
 
Share this answer
 
Use the following code snippet:

C#
System.Windows.Browser.HtmlPage.Navigate("mySecondPage.aspx");


Please "Mark As Answer" if this information is helpful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900