<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=813311223-26012007><FONT face=Arial
color=#0000ff size=2>That's a URL encoded equivalent of the XML string.
I'm not sure what you are doing with the XML after getting it, but take a look
at the HttpUtility.UrlDecode method in the .NET framework (it's in the
System.Web assembly) for details on how to decode the
string.</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Nimrod Cnaan [mailto:nimcnaan@hotmail.com]
<BR><B>Sent:</B> Friday, January 26, 2007 3:03 PM<BR><B>To:</B>
amorsell@spatialgis.com<BR><B>Subject:</B> RE: [mapguide-users] Listing Active
selected feature C#<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV class=RTE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">Hi
Andy & thank you both - Please let me know if you know anything about
this: </FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">It
seems that my problem with ‘listing selected feature’ is not a programming issue
rather then something to do with my environment, or I’m getting it all
wrong.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">When
Invoking URL, I’m getting the selected features under the following string,
witch is not a known XML format (getting strange xml characters):<SPAN
style="mso-spacerun: yes"> </SPAN><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman">[%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id….]
Act’.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT face="Times New Roman">Then
getting an unclassified error exception occurred. “An unclassified exception
occurred. Exception occurred in method MgSelection.FromXml at line 158 in file
c:\build_tux_area\mgdev_opensource\common\service\maplayer\Selection.cpp”<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="mso-ansi-language: EN-US"><FONT size=3><FONT
face="Times New Roman">Strangely, When Invoking Script commands on selected
featur I get things OK. <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"><?xml version="1.0"
encoding="UTF-8"?><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"><FeatureSet><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"><Layer
id="0fa0e9e4-0000-1000-8002-0018de8d1ec0"><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"><Class
id="Default:Helkot"><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"><ID>KwAAAA==</ID><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"></Class><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"></Layer><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="FONT-SIZE: 10pt; mso-ansi-language: EN-US"><FONT
face="Times New Roman"></FeatureSet><o:p></o:p></FONT></SPAN></P>
<P><BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT
style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>"Andy Morsell"
<amorsell@spatialgis.com></I><BR>To: <I><mapguide-users@lists.osgeo.org></I><BR>Subject: <I>RE:
[mapguide-users] Listing Active selected feature
C#</I><BR>Date: <I>Sun, 21 Jan 2007 11:14:39 -0800</I><BR>
<DIV></DIV><BR>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<META content="Microsoft SafeHTML" name=Generator>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=063391319-21012007><FONT face=Arial
color=#0000ff size=2>Greg,</FONT></SPAN></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=063391319-21012007><FONT face=Arial
color=#0000ff size=2>Would it be possible for you to post the example to the
</DIV>group? The list should accept plain text file attachments or you
could
<DIV></DIV>paste it into the message body.</FONT></SPAN>
<DIV></DIV>
<DIV></DIV>
<DIV> </DIV>
<DIV></DIV>
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left></DIV>
<HR>
<DIV></DIV><FONT face=Tahoma size=2><B>From:</B>
mapguide-users-bounces@lists.osgeo.org
<DIV></DIV>[mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of
</B>Knight,
<DIV></DIV>Gregory<BR><B>Sent:</B> Sunday, January 21, 2007 10:43
AM<BR><B>To:</B> Nimrod
<DIV></DIV>Cnaan; mapguide-users@lists.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users]
<DIV></DIV>Listing Active selected feature C#<BR></FONT><BR>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText41468 dir=ltr></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I have a C# example where I
</DIV>am doing exactly this. I can send you the page via separate means if you
are
<DIV></DIV>interested.</FONT>
<DIV></DIV>
<DIV></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Greg</FONT></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV dir=ltr><BR></DIV>
<HR>
<DIV></DIV><FONT face=Tahoma size=2><B>From:</B>
mapguide-users-bounces@lists.osgeo.org on
<DIV></DIV>behalf of Nimrod Cnaan<BR><B>Sent:</B> Sat 1/20/2007 9:13
AM<BR><B>To:</B>
<DIV></DIV>mapguide-users@lists.osgeo.org<BR><B>Subject:</B> [mapguide-users]
Listing
<DIV></DIV>Active selected feature C#<BR></FONT><BR>
<DIV></DIV>
<DIV></DIV>
<DIV><BR></DIV>
<P><FONT size=2>I am attempting to get the list of selected parcels by using
<DIV></DIV>“Invoke URL”<BR>command, passing “$Current Selection” to my
<DIV></DIV>“listdwfparcels.aspx” page,<BR>through the key & value
pair.<BR><BR>I don’t
<DIV></DIV>know what I’m doing wrong, getting unclassified
<DIV></DIV>exception<BR>“MgSelection.FromXml” . . .<BR><BR>Checking the value
of my mgkey
<DIV></DIV>content “$Current Selection”
<DIV></DIV>returns:<BR><BR>%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id%3D%22d6a8101a-ffff-ffff-8003-000000000038%22%3E%0A%3CClass%20id%3D%22Default%3AHelkot%22%3E%0A%3CID%3ETAAAAA%3D%3D%3C%2FID%3E%0A%3CID%3EVwAAAA%3D%3D%3C%2FID%3E%0A%3CID%3EVgAAAA%3D%3D%3C%2FID%3E%0A%3C%2FClass%3E%0A%3C%2FLayer%3E%0A%3C%2FFeatureSet%3E%0A<BR><BR>Here
<DIV></DIV>is portion of the code that I’m using –<BR><BR>String mgSessionId =
<DIV></DIV>GetParameters()["SESSION"];<BR>String mgSelection =
<DIV></DIV>GetParameters()["mgkey"];<BR>MgResourceIdentifier
<DIV></DIV>layerFeatureResource;<BR>MgReadOnlyLayerCollection
layers;<BR>MgSelection
<DIV></DIV>selection;<BR>MgLayer layer;<BR>string layerClassName;<BR>string
<DIV></DIV>selectionString;<BR>string
<DIV></DIV>layerFeatureId;<BR> <BR> <BR> try<BR>
<DIV></DIV>{<BR> InitializeWebTier();<BR><BR> MgUserInformation
userInfo = new
<DIV></DIV>MgUserInformation(mgSessionId);<BR> MgSiteConnection
siteConnection = new
<DIV></DIV>MgSiteConnection();<BR>
siteConnection.Open(userInfo);<BR><BR>
<DIV></DIV>MgResourceService resourceService
<DIV></DIV>=<BR>siteConnection.CreateService(MgServiceType.ResourceService)
<DIV></DIV>as<BR>MgResourceService;<BR> MgFeatureService featureService
<DIV></DIV>=<BR>siteConnection.CreateService(MgServiceType.FeatureService)
<DIV></DIV>as<BR>MgFeatureService;<BR> MgFeatureQueryOptions
queryOptions = new
<DIV></DIV>MgFeatureQueryOptions();<BR> <BR> MgMap map = new
<DIV></DIV>MgMap();<BR> map.Open(resourceService,
"HaifaMap");<BR> <BR>if
<DIV></DIV>(GetParameters()["SESSION"] != "")<BR>{<BR>
selection = new
<DIV></DIV>MgSelection(map, mgSelection);<BR><BR><<<<< MY ERROR
<DIV></DIV>>>>>><BR>An unclassified exception occurred.An
unclassified
<DIV></DIV>exception occurred.<BR>Exception occurred in method
MgSelection.FromXml at line
<DIV></DIV>158 in
<DIV></DIV>file<BR>c:\build_tux_area\mgdev_opensource\common\service\maplayer\Selection.cpp<BR><BR><BR>Nimrod
<DIV></DIV>Cnaan – GIS Senior Programmer<BR>Haifa Municipality,
<DIV></DIV>Israel<BR>Phon:972525355483<BR><BR>--<BR>View this message in
context: <A
href="http://www.nabble.com/Listing-Active-selected-feature-C--tf3045397s16610.html#a8465318">http://www.nabble.com/Listing-Active-selected-feature-C--tf3045397s16610.html#a8465318</A><BR>Sent
<DIV></DIV>from the MapGuide Users mailing list archive at
<DIV></DIV>Nabble.com.<BR><BR>_______________________________________________<BR>mapguide-users
<DIV></DIV>mailing list<BR>mapguide-users@lists.osgeo.org<BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></FONT>
<P></P>
<DIV></DIV>
<DIV></DIV>
<P>
<DIV></DIV>
<HR SIZE=1>
<DIV></DIV>
<DIV></DIV>
<P></P><BR>
<DIV></DIV>
<P><STRONG><BR>The substance of this message, including any attachments, may
<DIV></DIV>be<BR>confidential, legally<BR>privileged and/or exempt from
disclosure pursuant
<DIV></DIV>to Massachusetts<BR>law. It is intended<BR>solely for the
addressee. If you
<DIV></DIV>received this in error, please<BR>contact the sender and<BR>delete
the material
<DIV></DIV>from any computer.<BR></STRONG>
<P></P>
<DIV></DIV>
<DIV></DIV><BR>
<P>>_______________________________________________<BR>>mapguide-users
mailing
list<BR>>mapguide-users@lists.osgeo.org<BR>>http://lists.osgeo.org/mailman/listinfo/mapguide-users<BR>
<P></FONT></P></BLOCKQUOTE></DIV><BR clear=all>
<HR>
Express yourself instantly with MSN Messenger! <A
href="http://g.msn.com/8HMBEN/2743??PS=47575" target=_top>MSN Messenger</A>
Download today it's FREE! </BODY></HTML>