<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="" 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> </o:p></p><p class=MsoNormal> I’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’t work. The map loads fine and my query works fine, I get results but I can’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’d like to run it from outside the Task Pane. Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;background:yellow;mso-highlight:yellow'><%</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></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'>"SESSION"</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'>"iAPN"</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:blue'>Dim</span> webLayout <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = <span style='color:#A31515'>"Library://JC_Test/WebLayer/C.WebLayout"</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'> <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'> <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'>"APPL_PHYSICAL_PATH"</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:blue'>Dim</span> configPath <span style='color:blue'>As</span> <span style='color:#2B91AF'>[String]</span> = realPath & <span style='color:#A31515'>"webconfig.ini"</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:#2B91AF'>MapGuideApi</span>.MgInitializeWebTier(<span style='color:#A31515'>"C:\Program Files\AutoDesk\MapGuideEnterprise2011\WebServerExtensions\www\webconfig.ini"</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'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'> 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> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'> map.Open(resService, <span style='color:#A31515'>"C"</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'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'> nameQuery.SetFilter(<span style='color:#A31515'>"APN = '"</span> & encroachPermit & <span style='color:#A31515'>"'"</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'> <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'> <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'>"Library://Oracle Feature Source/FCT1TEST_Assessor feature source.FeatureSource"</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'>"PARCELPTS"</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> </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'> <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'> <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'> <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'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> list.Add(featureReader.GetString(<span style='color:#A31515'>"APN"</span>))<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'> <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'>"C_Parcels"</span>)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> featureReader = featureService.SelectFeatures(encroachId, <span style='color:#A31515'>"PARCELPTS"</span>, nameQuery)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> 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'> <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'> <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'> <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'> <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;background:yellow;mso-highlight:yellow'>%></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'><!</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'>"-//W3C//DTD XHTML 1.0 Transitional//EN"</span> <span style='color:blue'>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></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'><</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'>="http://www.w3.org/1999/xhtml"></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'><</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'>></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'> <span style='color:blue'><</span><span style='color:maroon'>title</span><span style='color:blue'>></span>Make Query<span style='color:blue'></</span><span style='color:maroon'>title</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'> <span style='color:blue'><</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>="Content-Type"</span> <span style='color:red'>content</span><span style='color:blue'>="text/html; charset=UTF-8"</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'> <span style='color:blue'><</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>="content-script-type"</span> <span style='color:red'>content</span><span style='color:blue'>="text/javascript"</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'> <span style='color:blue'><</span><span style='color:maroon'>meta</span> <span style='color:red'>http-equiv</span><span style='color:blue'>="content-style-type"</span> <span style='color:red'>content</span><span style='color:blue'>="text/css"</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'> <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'> <span style='color:blue'><</span><span style='color:maroon'>script</span> <span style='color:red'>type</span><span style='color:blue'>="text/javascript"></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> 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> </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'> }<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'> <span style='color:blue'></</span><span style='color:maroon'>script</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'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'></</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'>></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'><</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'>="body1"</span> <span style='color:red'>class</span><span style='color:blue'>="AppFrame"</span> <span style='color:red'>onload</span><span style='color:blue'>="onPageLoad()"></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:blue'><</span><span style='color:maroon'>strong</span><span style='color:blue'>></span>The following are the query results: <span style='color:blue'></</span><span style='color:maroon'>strong</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'> <span style='color:blue'><</span><span style='color:maroon'>ul</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'> <span style='background:yellow;mso-highlight:yellow'><%</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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'> <span style='color:blue'>If</span> address <> <span style='color:#A31515'>""</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'> Response.Write(<span style='color:#A31515'>"<li>"</span> & list(i).ToString() & <span style='color:#A31515'>"</li>"</span> & vbLf)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <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'> <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> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='background:yellow;mso-highlight:yellow'>%></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:blue'></</span><span style='color:maroon'>ul</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'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:blue'><</span><span style='color:maroon'>iframe</span> <span style='color:red'>id</span><span style='color:blue'>="imap"</span> <span style='color:red'>src</span><span style='color:blue'>="/mapguide2011/mapviewernet/ajaxviewer.aspx?SESSION=</span><span style='background:yellow;mso-highlight:yellow'><%</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'>%></span><span style='color:blue'>&WEBLAYOUT=</span><span style='background:yellow;mso-highlight:yellow'><%</span><span style='color:blue'>=</span> webLayout <span style='background:yellow;mso-highlight:yellow'>%></span><span style='color:blue'>"</span> <span style='color:red'>name</span><span style='color:blue'>="ViewerFrame"</span> <span style='color:red'>height</span><span style='color:blue'>="700"</span> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas'> <span style='color:red'>width</span><span style='color:blue'>="1200"</span> <span style='color:red'>scrolling</span><span style='color:blue'>="yes"</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'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue'></</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'>></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'></</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'>></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> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>JC<o:p></o:p></p></div></body></html>