Hi,I have this for a parcel link as well. Common thing I guess! It was also to replace the QueryZoom from an ArcIMS site I replaced with silverlight.What I did was to use HtmlPage to get to the query string and then process that in the MainPage startup.
public MainPage()
{
InitializeComponent();
//Code section for handling a Query String if passed in the URL
#region Handling for URL Query String
if (HtmlPage.Document.QueryString.ContainsKey("service"))
{
if (HtmlPage.Document.QueryString["service"] == "parcel")
{
if (HtmlPage.Document.QueryString.ContainsKey("parcelid"))
{
Process_ParcelQS(HtmlPage.Document.QueryString["parcelid"], "parcelid");
}
else if (HtmlPage.Document.QueryString.ContainsKey("spatid"))
{
Process_ParcelQS(HtmlPage.Document.QueryString["spatid"], "spatid");
}
else if (HtmlPage.Document.QueryString.ContainsKey("address"))
{
Process_ParcelQS(HtmlPage.Document.QueryString["address"], "address");
}
else
{
MessageBox.Show("passed URL does not contain data", "Parcel Service", MessageBoxButton.OK);
}
}
I also have other "services" like for users to zoom to a culvert or a specific zoning polygon etc... The parcel service in the code above can take a parcel id, a spatial id, or an address. I then pass the parameters to a function that runs a query, turns on aerials, and zooms to the parcel.private void Process_ParcelQS(string inValue, string service){ do your stuff here}so the calling app can format a string like:http://yourwebsite.com/myapp.html?service=parcel&parcelid=345600800032
or
http://yourwebsite.com/myapp.html?service=parcel&address=123 S Main St
and silverlight will zoom right to it!Oh... the HtmlPage is in System.Windows.Browser add that reference and using statement.