[mapguide-users] Invkoe URL with parameters

Jayanta jayanta.ghosh at cesc.co.in
Wed Mar 30 02:55:55 EDT 2011


Hi,
I want to invoke a url along with parameters. Using Mapguide I have
configured the invoke url and passed the parameter by providing the
key/value pair i.e SELECTION/$currentSelection. The url is basically an
asp.net page and its source code is given below:-
<%@ Page Language="C#" ValidateRequest="false" %>

<%@ Import Namespace="OSGeo.MapGuide" %>


<%
    String sessionID = Request.Form.Get("SESSION");
    string realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];
    String configPath = realPath + "webconfig.ini";
    MapGuideApi.MgInitializeWebTier(configPath);

    MgUserInformation userInfo = new MgUserInformation(sessionID);
    MgSiteConnection siteConnection = new MgSiteConnection();
    siteConnection.Open(userInfo);

    String selString = Request.Form.Get("SELECTION");
    Response.Write(selString);
    String selection = HttpUtility.UrlDecode(selString);
    Response.Write("Selection=\n");
    Response.Write(selection);
        
%>


    List Selection
    
    
    
    
    


   


The output that i am getting from the above page is also given below:-

%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id%3D%22e7fca9e2-ffff-ffff-8004-001cc0bbbc38%22%3E%0A%3CClass%20id%3D%22Default%3AOPTICAL_FIBRE_FINAL_polyline%22%3E%0A%3CID%3EAwAAAA%3D%3D%3C%2FID%3E%0A%3C%2FClass%3E%0A%3C%2FLayer%3E%0A%3C%2FFeatureSet%3E%0ASelection=
AwAAAA== 

My requirement is that when i will select a layer in the map that selected
object has got some attribute, I want to capture the attribute value in a
variable.

I will be greatful if any body can help me in this regard.
  




--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Invkoe-URL-with-parameters-tp6222045p6222045.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list