I designed the usercontrol for forgot password page.Then i need to send some of the textbox values to another page when button click in child windows page.please help me ....
Asked
Active
Viewed 195 times
-1
-
if you aren't using a ViewModel you may store such data in static field accesed by App.xaml, for example. – josemiguel.torres Jun 27 '12 at 11:50
-
I need to Navigate to another page from child page .please tell me synatax for that.. – WP7 Jun 27 '12 at 11:51
-
NavigationService.Navigate(new Uri("/YourPage.xaml?yourValue=" + yourTextBox.Text, UriKind.Relative)); – josemiguel.torres Jun 27 '12 at 11:56
-
The above NavigationService.Navigate not working in child window usercontrol..."error like an object reference for the non static filed".. – WP7 Jun 27 '12 at 12:01
-
try (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(uri); – josemiguel.torres Jun 27 '12 at 12:06
-
childwindows control values in code behind not coming.i.e chlild.xaml page control values not accessing in child.xaml.cs page.please tell me how to access that.. – WP7 Jun 27 '12 at 12:15
-
the above statement Getting " System.Diagnostics.Debugger.Break(); error . – WP7 Jun 27 '12 at 12:55
-
possible duplicate of http://stackoverflow.com/questions/5216049/passing-values-from-one-form-to-another-in-windows-phone-7 – Rich Hopkins Jun 28 '12 at 13:08
2 Answers
0
there are various way to do this.
you could actually declare a global variable in App.cs and assign the value to the global variable and then retrieve it back in the other page.
otherwise you could also do NavigationService.Navigate(new Uri("/YourPage.xaml?yourValue=" + yourTextBox.Text, UriKind.Relative));

LZH
- 775
- 1
- 7
- 15
0
As stated above, you'll need to pass the parameters in the Uri when you call the new page. There are several good explanations and examples on this page, also on Stack Overflow: passing values from one form to another in Windows Phone 7

Community
- 1
- 1

Rich Hopkins
- 1,861
- 15
- 29