[mapguide-users] aspx code behind

ed57gmc-bus at yahoo.com ed57gmc-bus at yahoo.com
Sat Feb 14 19:17:46 EST 2009


Thanks, I'll check more into that. I'm new to asp.
 
Ed Jobe




________________________________
From: Jackie Ng <jumpinjackie at gmail.com>
To: mapguide-users at lists.osgeo.org
Sent: Friday, February 13, 2009 8:33:39 PM
Subject: Re: [mapguide-users] aspx code behind


Yes, asp.net will treat them as HtmlControl (or is it HtmlGenericControl?)
objects on the server-side.

- Jackie


Ed Jobe wrote:
> 
> Can you do that to regular html elements? Don't you have to use asp
> controls?
>  
> Ed Jobe
> 
> 
> 
> 
> ________________________________
> From: Jackie Ng <jumpinjackie at gmail.com>
> To: mapguide-users at lists.osgeo.org
> Sent: Friday, February 13, 2009 4:31:03 AM
> Subject: Re: [mapguide-users] aspx code behind
> 
> 
> Include a runat="server" attribute in the html element you want to expose.
> 
> Then in the code-behind, either set its relevant properties or its
> Attributes collection property.
> 
> - Jackie
> 
> 
> staniz wrote:
>> 
>> I am trying to make default.aspx with code behind.
>> Can sameone helps to provide information of code behind with Mapguide
>> API? 
>> 
>> 
>> default.aspx.cs
>> using OSGeo.MapGuide;
>> 
>> public partial class Default2 : System.Web.UI.Page
>> {
>>    protected void Page_Load(object sender, EventArgs e)
>>    {
>>        MapGuideApi.MgInitializeWebTier(@"C:\Program
>> Files\Autodesk\MapGuideEnterprise2008\WebServerExtensions\www\webconfig.ini");
>> 
>>        MgUserInformation userInfo = new MgUserInformation("Anonymous",
>> "");
>>        MgSite site = new MgSite();
>>        site.Open(userInfo);
>> 
>>        String sessionId = site.CreateSession();
>>        String webLayout = "Library://DevTV/HelloWorld.WebLayout";
>> 
>>    }
>> }
>> 
>> default.aspx
>> <html xmlns="http://www.w3.org/1999/xhtml" >
>> <head>
>>    <title>HelloWorld</title>
>> </head>
>> 
>> <frameset rows="0,*" border="0" framespacing="0">
>>  <frame />
>>  <frame id="ViewerFrame"
>> src="/mapguide2008/mapviewernet/ajaxviewer.aspx?SESSION=sessionId&WEBLAYOUT=webLayout"/>
>> </frameset>
>> 
>> </html>  
>> 
>> ****
>> 
>> How to sent value from code behind to aspx?
>> please help..
>> 
>> regards,
>> Staniz
>> 
> 
> -- 
> View this message in context:
> http://n2.nabble.com/aspx-code-behind-tp2319949p2320957.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/aspx-code-behind-tp2319949p2325214.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090214/f787c9a8/attachment.html


More information about the mapguide-users mailing list