Click here to Skip to main content
15,887,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,


i am developing a windows7 mobile application so in that i am navigation from one page to another page.I written below code

C#
button1_click

{
 NavigationService.Navigate(new UriKind("/page1.xaml",UriKind.RelativeOrAbsolute));
}


but it's not working...please any body give to me suggestion.

thanks's in advance

nareshraju u.
Posted
Updated 22-Apr-12 20:35pm
v2

Please refer following threads:
Navigate from one page to another[^]
Here you'll get some more details:
Passing data from page to page[^]
And finally have a look here[^]
 
Share this answer
 
Comments
Unareshraju 23-Apr-12 4:03am    
very thank u so-much Prasad my problem has solved by your suggestions.
Prasad_Kulkarni 23-Apr-12 4:40am    
Glad it helps!
vangapally Naveen Kumar 22-Jun-12 5:01am    
my 5!
don't use
"new UriKind("/page1.xaml",UriKind.RelativeOrAbsolute)"

use it like this:
new Uri("/page1.xaml",UriKind.RelativeOrAbsolute)
 
Share this answer
 
v3
Make the below change:

C#
button1_click

{
 NavigationService.Navigate(new Uri("/page1.xaml",UriKind.RelativeOrAbsolute));
}


See that the this button1_Click is in Page control, not embedded in UserControl or Windows
 
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