[mapguide-users] Fusion and .NET Development
KeithC
keith.campbell at atkinsglobal.com
Tue Dec 23 11:09:30 EST 2008
Brian, thanks but I'm not sure you understood what I meant. I need to get the
session ID, etc that has already been established by Fusion, at the client
side.
With the AJAX viewer, using InvokeURL my aspx page is called and the
JavaScript loads and calls the GetSessionId() and GetMapName() methods of
the MapFrame object to get the values client side. I need the equivalent
from Fusion but it doesn't seem to be readily accessible.
Once I have got those parameters client side, I'm fine.
Regards,
Keith
Berdel, Brian wrote:
>
> Something like this will work
>
> public string GetParameter(NameValueCollection parameters, string name)
> {
> string strval = parameters(name);
> if (strval == null) {
> return "";
> }
> return strval.Trim();
> }
>
> {
> string mgSessionId = null;
> NameValueCollection parameters = default(NameValueCollection);
>
> if (System.Web.HttpContext.Current.Request.HttpMethod == "POST") {
> parameters = System.Web.HttpContext.Current.Request.Form;
> }
> else {
> parameters = System.Web.HttpContext.Current.Request.QueryString;
>
> }
>
> string mapName = GetParameter(parameters, "MAPNAME");
> string session = GetParameter(parameters, "SESSION");
> }
>
> Brian
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of KeithC
> Sent: Tuesday, December 23, 2008 9:20 AM
> To: mapguide-users at lists.osgeo.org
> Subject: RE: [mapguide-users] Fusion and .NET Development
>
>
> Thanks Brian.
>
> How do I get the session ID, etc from Fusion? I need to pass these to
> the
> backend.
>
> Regards,
>
> Keith
>
>
>
> Berdel, Brian wrote:
>>
>> If you were successful with the regular Ajax viewer you can hook to
> the
>> task pane of fusion using the intitial url or use an invoke url script
>> to access the .net pages via a new window or the task pane. The
> mapguide
>> webapi is still accessible in fusion.
>>
>> Brian
>>
>> -----Original Message-----
>> From: mapguide-users-bounces at lists.osgeo.org
>> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of KeithC
>> Sent: Tuesday, December 23, 2008 8:23 AM
>> To: mapguide-users at lists.osgeo.org
>> Subject: [mapguide-users] Fusion and .NET Development
>>
>>
>> What is the easiest way to hook .NET based App development into
> Fusion?
>> I
>> have an application that uses the web API in C# and I'd like to make
>> this
>> available in a flexible layout. I don't wish to rewrite the App in
> PHP.
>> I do
>> need to extract some parameters from the client side to send to the
>> server,
>> such as session ID, map name and web agent url, but it's not clear how
>> to do
>> this.
>>
>> Keith
>> --
>> View this message in context:
>>
> http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693730.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
> --
> View this message in context:
> http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1693910.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/Fusion-and-.NET-Development-tp1693730p1694289.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list