<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Can you do that to regular html elements? Don't you have to use&nbsp;asp controls?<BR>&nbsp;</DIV>
<DIV><FONT color=#0000ff>Ed Jobe</FONT></DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jackie Ng &lt;jumpinjackie@gmail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> mapguide-users@lists.osgeo.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, February 13, 2009 4:31:03 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [mapguide-users] aspx code behind<BR></FONT><BR><BR>Include a runat="server" attribute in the html element you want to expose.<BR><BR>Then in the code-behind, either set its relevant properties or its<BR>Attributes collection property.<BR><BR>- Jackie<BR><BR><BR>staniz wrote:<BR>&gt; <BR>&gt; I am trying to make default.aspx with code behind.<BR>&gt; Can sameone helps to provide information of code behind with Mapguide API? <BR>&gt; <BR>&gt; <BR>&gt; <A href="http://default.aspx.cs/" target=_blank>default.aspx.cs</A><BR>&gt; using OSGeo.MapGuide;<BR>&gt; <BR>&gt; public partial class Default2 : System.Web.UI.Page<BR>&gt;
 {<BR>&gt;&nbsp; &nbsp; protected void Page_Load(object sender, EventArgs e)<BR>&gt;&nbsp; &nbsp; {<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; MapGuideApi.MgInitializeWebTier(@"C:\Program<BR>&gt; Files\Autodesk\MapGuideEnterprise2008\WebServerExtensions\www\webconfig.ini");<BR>&gt; <BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; MgUserInformation userInfo = new MgUserInformation("Anonymous",<BR>&gt; "");<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; MgSite site = new MgSite();<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; site.Open(userInfo);<BR>&gt; <BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; String sessionId = site.CreateSession();<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; String webLayout = "Library://DevTV/HelloWorld.WebLayout";<BR>&gt; <BR>&gt;&nbsp; &nbsp; }<BR>&gt; }<BR>&gt; <BR>&gt; default.aspx<BR>&gt; &lt;html xmlns="<A href="http://www.w3.org/1999/xhtml" target=_blank>http://www.w3.org/1999/xhtml</A>" &gt;<BR>&gt; &lt;head&gt;<BR>&gt;&nbsp; &nbsp; &lt;title&gt;HelloWorld&lt;/title&gt;<BR>&gt;
 &lt;/head&gt;<BR>&gt; <BR>&gt; &lt;frameset rows="0,*" border="0" framespacing="0"&gt;<BR>&gt;&nbsp; &lt;frame /&gt;<BR>&gt;&nbsp; &lt;frame id="ViewerFrame"<BR>&gt; src="/mapguide2008/mapviewernet/ajaxviewer.aspx?SESSION=sessionId&amp;WEBLAYOUT=webLayout"/&gt;<BR>&gt; &lt;/frameset&gt;<BR>&gt; <BR>&gt; &lt;/html&gt;&nbsp; <BR>&gt; <BR>&gt; ****<BR>&gt; <BR>&gt; How to sent value from code behind to aspx?<BR>&gt; please help..<BR>&gt; <BR>&gt; regards,<BR>&gt; Staniz<BR>&gt; <BR><BR>-- <BR>View this message in context: <A href="http://n2.nabble.com/aspx-code-behind-tp2319949p2320957.html" target=_blank>http://n2.nabble.com/aspx-code-behind-tp2319949p2320957.html</A><BR>Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A href="mailto:mapguide-users@lists.osgeo.org"
 ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV></DIV></div></body></html>