This question is locked. New answers and comments are not allowed.
I have a grid with a hyperlink column that needs to go to another xaml page and pass a parameter so the other page knows which item was clicked on. I am trying to use a querystring parameter without luck so far.
My column looks like:
When I click the link, it looks like: localhost:2261/NavPage.aspx#/Breakdown?sid=6. Since the parameter is after the #, I am unable to find the value - HtmlPage.Document.QueryString["sid"] ends up being null.
I started the project with the Silverlight Business Application template, and have the following code in my MainPage.xaml:
How do I use the hyperlink column to pass the value I want to the destination xaml page?
My column looks like:
<datagrid:GridViewDynamicHyperlinkColumn Header="ERR #" DataMemberBinding="{Binding ResourceRequestNo}" NavigateUrlMemberPaths="ScheduleId" NavigateUrlFormatString="/Breakdown?sid={0}" IsReadOnly="True"/>When I click the link, it looks like: localhost:2261/NavPage.aspx#/Breakdown?sid=6. Since the parameter is after the #, I am unable to find the value - HtmlPage.Document.QueryString["sid"] ends up being null.
I started the project with the Silverlight Business Application template, and have the following code in my MainPage.xaml:
<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/Projects" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed"> <navigation:Frame.UriMapper> <uriMapper:UriMapper> <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/> <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/> </uriMapper:UriMapper> </navigation:Frame.UriMapper> </navigation:Frame>How do I use the hyperlink column to pass the value I want to the destination xaml page?