- Nov 2, 2004
- 1,460
- 2
- 81
I'm pretty new to C# and silverlight I'm trying to pass variable values between 2 pages. Here is what I'm using.
Uri go = new Uri("/CharStats.xaml?var1=" + var1.Content + "var2=" + var2.txt, UriKind.Relative);
I was wondering how to parse the string on the page I'm passing to. I know how to do it if its a single variable but not more than one:
string stringname;
NavigationContext.QueryString.TryGetValue("search", out stringout);
Is there a better way to pass variables between pages? This is for a WP7 application btw. Thanks.
Uri go = new Uri("/CharStats.xaml?var1=" + var1.Content + "var2=" + var2.txt, UriKind.Relative);
I was wondering how to parse the string on the page I'm passing to. I know how to do it if its a single variable but not more than one:
string stringname;
NavigationContext.QueryString.TryGetValue("search", out stringout);
Is there a better way to pass variables between pages? This is for a WP7 application btw. Thanks.