I am trying to send the values between the pages using :
NavigationService.Navigate(new Uri(\"/ABC.xaml?name=\" + Company + \"&city=\" + City , UriKind.R
The &
character is treated as a special character in query strings as a means of separating values. It needs to be escaped into %26
.
For more information on how to escape URLs easily using Uri.EscapeUriString.
For example:
string Company = "ABC & D";
string City = "Falls Church";
string escaped = Uri.EscapeUriString("/ABC.xaml?name=" + Company + "&city=" + City);
var uri = new Uri(escaped, UriKind.Relative);