简体   繁体   中英

windows phone more than one navigation keys

i am trying to navigate on windows phone 7.1 from one page to another , using more than one navigation keys

Me.NavigationService.Navigate(New Uri(String.Format("/ImagePage.xaml?tag={0}", li.Tag), UriKind.Relative))

this one works perfect...

but when i am adding and a second key :

Me.NavigationService.Navigate(New Uri(String.Format("/ImagePage.xaml?tag={0}?tag2={1}", li.Tag,l2.tag), UriKind.Relative))

but the result on second page is :

tag = "tag"?tag2="tag2"

where "tag" = contet of tag and "tag2" = contet of tag2

any ideas ... the wrong must be on the ? operator , but i am not sure :S i have try many others , none of theme seems correct :O

thank you any way !

The second ? should be a & :

Me.NavigationService.Navigate(New Uri(String.Format("/ImagePage.xaml?tag={0}&tag2={1}", ...

第二次应该有AND符号,而没有问号两次。

/ImagePage.xaml?tag={0}&tag2={1}"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM