Click here to Skip to main content
15,124,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 xaml pages and i have one button on main page
when i click button i want to navigate to another page
i have used
HtmlPage.Window.Navigate(new Uri("http://localhost:3858/SilverlightGridTestPage.aspx#/Views/bldghome.xaml"));


this line to change page and this works, but it does not execute serverside code

is there any alternative for this???
Posted

HtmlPage.Window.Navigate is used to navigate to html page. if you want to navigate to a html page through silverlight you can use HtmlPage.Window.Navigate. but if u want to navigate to another xaml page this want work.
you have to use other techniques like navigation frame..

refer this links to get an idea:-
http://www.longhorncorner.com/UploadFile/nipuntomar/Silverlight209112008012441AM/Silverlight2.aspx[^]

http://www.vistax64.com/avalon/50603-how-navighate-between-xaml-pages.html[^]
   
Indrajeet Sutar wrote:
but it does not execute serverside code

What if this serverside code is called in the constructor of bkdgghome.xaml?
   

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