locked
How to pass ampersand (&) in NavigationService.Navigate method

    Question

  • I am trying to passing (&) symbol from one page to another page in Navigation Query string but on the next page when I tried to received It will trimmed after & symbol ,,

    Ex. NavigationService.Navigate(new Uri("/ProductPage.xaml?name=xyz&data=jack & jones"));

    Data received on ProductPage is : 

    name = xyz

    data = jack ----> it should be jack & jones

    I have also tried to encode data before passing to Uri using Uri.escapedataString()  and HttpUtility.EncodeUrl() methods, but didn't get success. 

    Is there any other way to pass & symbol in Querystring. 

    Thanks


    Ravindra

    Tuesday, March 10, 2015 12:59 PM

Answers

All replies