<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello All,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I&#8217;m new to Mapguide. I am trying to get the ZoomToView to run but am having issues. I can get it to work if I place my .aspx page in the Task Pane of the map. But when I try to use it from an .aspx page from outside of the task pane it doesn&#8217;t work. The map loads fine and my query works fine, I get results but I can&#8217;t seem to get any javascript to run on the map. I hard coded the coordinates for the ZoomToView in the code below. The same code works fine when run from the Task Pane but again I&#8217;d like to run it from outside the Task Pane. Thanks<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;background:yellow;mso-highlight:yellow'>&lt;%</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:green'>'from the previous page</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> sessionId <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = Request.Form.[Get](<span style='color:#A31515'>&quot;SESSION&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> encroachPermit <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = Request.Form.[Get](<span style='color:#A31515'>&quot;iAPN&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> webLayout <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = <span style='color:#A31515'>&quot;Library://JC_Test/WebLayer/C.WebLayout&quot;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:green'>'path to web config</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> realPath <span style='color:blue'>As</span> <span style='color:blue'>String</span> = Request.ServerVariables(<span style='color:#A31515'>&quot;APPL_PHYSICAL_PATH&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> configPath <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = realPath &amp; <span style='color:#A31515'>&quot;webconfig.ini&quot;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:#2B91AF'>MapGuideApi</span>.MgInitializeWebTier(<span style='color:#A31515'>&quot;C:\Program Files\AutoDesk\MapGuideEnterprise2011\WebServerExtensions\www\webconfig.ini&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> userInfo <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgUserInformation</span>(sessionId)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> siteConnection <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgSiteConnection</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; siteConnection.Open(userInfo)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> resService <span style='color:blue'>As</span> <span style='color:#2B91AF'>MgResourceService</span> = <span style='color:blue'>DirectCast</span>(siteConnection.CreateService(<span style='color:#2B91AF'>MgServiceType</span>.ResourceService), <span style='color:#2B91AF'>MgResourceService</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> featureService <span style='color:blue'>As</span> <span style='color:#2B91AF'>MgFeatureService</span> = <span style='color:blue'>DirectCast</span>(siteConnection.CreateService(<span style='color:#2B91AF'>MgServiceType</span>.FeatureService), <span style='color:#2B91AF'>MgFeatureService</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:green'>'Map from Map Guide</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> map <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgMap</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; map.Open(resService, <span style='color:#A31515'>&quot;C&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:green'>'Query for the second condition</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> nameQuery <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgFeatureQueryOptions</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; nameQuery.SetFilter(<span style='color:#A31515'>&quot;APN = '&quot;</span> &amp; encroachPermit &amp; <span style='color:#A31515'>&quot;'&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:green'>'second feature sources to compare first to</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> encroachId <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgResourceIdentifier</span>(<span style='color:#A31515'>&quot;Library://Oracle Feature Source/FCT1TEST_Assessor feature source.FeatureSource&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> featureReader <span style='color:blue'>As</span> <span style='color:#2B91AF'>MgFeatureReader</span> = featureService.SelectFeatures(encroachId, <span style='color:#A31515'>&quot;PARCELPTS&quot;</span>, nameQuery)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:blue'>Dim</span> list <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>ArrayList</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> x_coordinate <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>ArrayList</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> y_coordinate <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>ArrayList</span>()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:blue'>While</span> featureReader.ReadNext()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list.Add(featureReader.GetString(<span style='color:#A31515'>&quot;APN&quot;</span>))<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>End</span> <span style='color:blue'>While</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:green'>'Highlight the query result on the map</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> selection <span style='color:blue'>As</span> <span style='color:blue'>New</span> <span style='color:#2B91AF'>MgSelection</span>(map)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> layer <span style='color:blue'>As</span> <span style='color:#2B91AF'>MgLayer</span> = map.GetLayers().GetItem(<span style='color:#A31515'>&quot;C_Parcels&quot;</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; featureReader = featureService.SelectFeatures(encroachId, <span style='color:#A31515'>&quot;PARCELPTS&quot;</span>, nameQuery)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; selection.AddFeatures(layer, featureReader, 0)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> selectionXML <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = selection.ToXml()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> selectionXML2 <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = selection.ToXml()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;background:yellow;mso-highlight:yellow'>%&gt;</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;!</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>DOCTYPE</span><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:red'>html</span> <span style='color:red'>PUBLIC</span> <span style='color:blue'>&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style='color:blue'>&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>html</span><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:red'>xmlns</span><span style='color:blue'>=&quot;http://www.w3.org/1999/xhtml&quot;&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>head</span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>title</span><span style='color:blue'>&gt;</span>Make Query<span style='color:blue'>&lt;/</span><span style='color:maroon'>title</span><span style='color:blue'>&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>=&quot;Content-Type&quot;</span> <span style='color:red'>content</span><span style='color:blue'>=&quot;text/html; charset=UTF-8&quot;</span> <span style='color:blue'>/&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>=&quot;content-script-type&quot;</span> <span style='color:red'>content</span><span style='color:blue'>=&quot;text/javascript&quot;</span> <span style='color:blue'>/&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>=&quot;content-style-type&quot;</span> <span style='color:red'>content</span><span style='color:blue'>=&quot;text/css&quot;</span> <span style='color:blue'>/&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>script</span> <span style='color:red'>type</span><span style='color:blue'>=&quot;text/javascript&quot;&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>function</span> onPageLoad() {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent.parent.ZoomToView(6249630.51, 2281462.61, 5000, true);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:blue'>&lt;/</span><span style='color:maroon'>script</span><span style='color:blue'>&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;/</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>head</span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>body</span><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:red'>id</span><span style='color:blue'>=&quot;body1&quot;</span> <span style='color:red'>class</span><span style='color:blue'>=&quot;AppFrame&quot;</span> <span style='color:red'>onload</span><span style='color:blue'>=&quot;onPageLoad()&quot;&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>strong</span><span style='color:blue'>&gt;</span>The following are the query results: <span style='color:blue'>&lt;/</span><span style='color:maroon'>strong</span><span style='color:blue'>&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>ul</span><span style='color:blue'>&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='background:yellow;mso-highlight:yellow'>&lt;%</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>For</span> i <span style='color:blue'>As</span> <span style='color:blue'>Integer</span> = 0 <span style='color:blue'>To</span> list.Count - 1<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>Dim</span> address <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = list(i).ToString()<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>If</span> address &lt;&gt; <span style='color:#A31515'>&quot;&quot;</span> <span style='color:blue'>Then</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(<span style='color:#A31515'>&quot;&lt;li&gt;&quot;</span> &amp; list(i).ToString() &amp; <span style='color:#A31515'>&quot;&lt;/li&gt;&quot;</span> &amp; vbLf)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>End</span> <span style='color:blue'>If</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:blue'>Next</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='background:yellow;mso-highlight:yellow'>%&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;/</span><span style='color:maroon'>ul</span><span style='color:blue'>&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp; <span style='color:blue'>&lt;</span><span style='color:maroon'>iframe</span> <span style='color:red'>id</span><span style='color:blue'>=&quot;imap&quot;</span> <span style='color:red'>src</span><span style='color:blue'>=&quot;/mapguide2011/mapviewernet/ajaxviewer.aspx?SESSION=</span><span style='background:yellow;mso-highlight:yellow'>&lt;%</span><span style='color:blue'>=</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>sessionId <span style='background:yellow;mso-highlight:yellow'>%&gt;</span><span style='color:blue'>&amp;WEBLAYOUT=</span><span style='background:yellow;mso-highlight:yellow'>&lt;%</span><span style='color:blue'>=</span> webLayout <span style='background:yellow;mso-highlight:yellow'>%&gt;</span><span style='color:blue'>&quot;</span> <span style='color:red'>name</span><span style='color:blue'>=&quot;ViewerFrame&quot;</span> <span style='color:red'>height</span><span style='color:blue'>=&quot;700&quot;</span> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='color:red'>width</span><span style='color:blue'>=&quot;1200&quot;</span> <span style='color:red'>scrolling</span><span style='color:blue'>=&quot;yes&quot;</span> <span style='color:blue'>/&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;/</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>body</span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&lt;/</span><span style='font-size:9.5pt;font-family:Consolas;color:maroon'>html</span><span style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>JC<o:p></o:p></p></div></body></html>