Problem: I want to pass the mobile phone No with a plus sign to next page. But only get mobile phone no without a plus sign.
help is much appreciated.
txtMobile1.text = "+61912345678"
if (chk1.IsChecked.Value)
{
NavigationService.Navigate(new Uri("/SendMsg.xaml?fn=" + HttpUtility.UrlEncode(txtMobile1.Text) + "&Name=" + strName, UriKind.Relative));
}
---- Receiving:
if (NavigationContext.QueryString.ContainsKey("fn"))
{
strPassInMobileNo = HttpUtility.UrlDecode(this.NavigationContext.QueryString["fn"]) ;
}
The received mobile phone no is : 61912345678 without the puls sign
Use
HttpUtility.HtmlDecode(this.NavigationContext.QueryString["fn"]);