I'm trying to pass coordinates to an html file through a hyperlink, but the "?=" part seems to get overridden.
<TextBlock><Hyperlink x:Name="hl" NavigateUri="C:/Users/.../RESTToolkitTestApp/index.htm" RequestNavigate="Hyperlink_RequestNavigate">HyperLink</Hyperlink></TextBlock>
this is in my xaml file
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
String coords = coord1 + " " + coord2;
String tempurl = e.Uri.AbsoluteUri + "?test=0";
Process.Start(new ProcessStartInfo(tempurl, coords));
e.Handled = true;
}
this is in my c# file
When I click on the hyperlink the "?test=0" goes away, I think probably because of the NavigateUri has a set url and the Process parameters don't actually do anything? I tried passing coords on as a parameter too as you can see in the line "Process.Start", but I don't know how to receive it on the htm side. If you know how to get the data from the htm file either way, or maybe some other way, I would appreciate it.