<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Courier;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle19 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</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 vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2>Steve,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2>If you look at the dwfviewersample.aspx (inserted
below) file in the C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\dotnetviewersample folder, you
will see that it is the ASP.NET equivalent (or close) to what Bob posted in
PHP. Not all ASP.NET programmers like to use Visual Studio and create the
overhead of a project when all of the extraneous files are often not
needed. I prefer to have complete control over what is being
written rather than letting a GUI do it all for me. I know it may
be a little unusual and inefficient, but I do all of my ASP.NET
development in Dreamweaver and write .NET purely in the raw form. I
do everything code-behind, if possible, and I compile with the command
line. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2>Is this the right way to do things? Maybe. Is
your way the right way to do things? Maybe. The point is, there is
more than one way to achieve the same goal and different people have different
preferences and what is totally logical to one person, may be illogical to the
next.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=086310922-27032006><FONT face=Arial
color=#0000ff size=2>You should be able to take the .NET sample application and
modify it for your own use. It's very easy to translate it to
code-behind. You can also create your application in whatever
folder you want with no (physical) dependency on the rest of the MGOS
web-tier. The way the example application works is that the various
functions are called through the out-of-the-box task pane, maybe that's why it
looks like everything is so disjointed to you? </FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy Morsell, P.E.</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Tahoma size=1>Spatial Integrators,
Inc.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Tahoma size=1><A
href="http://www.SpatialGIS.com">http://www.SpatialGIS.com</A></FONT></SPAN>
</P>
<P><FONT face=Arial color=#0000ff size=2></FONT> </P>
<P><FONT face=Arial color=#0000ff size=2><%@ Page language="c#"
%><BR><%@ Import Namespace="OSGeo.MapGuide" %><BR><!-- #Include
File="utilityfunctions.aspx" --></FONT></P>
<P><FONT face=Arial color=#0000ff size=2><!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.0 Transitional//EN" ><BR><%<BR> // Initialize a
Aspx session and register a variable to hold the<BR> //
session id, then initialize the Web-Extensions, and
connect<BR> // to the site, and create a session.</FONT></P>
<P><FONT face=Arial color=#0000ff size=2> String mapDefinition
=
"Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition";<BR>
String webLayout =
"Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout";<BR>
String sessionId = "";</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>
try<BR> {<BR>
MapGuideApi.InitializeSockets();<BR>
InitializeWebTier();</FONT></P>
<P><FONT face=Arial color=#0000ff
size=2> MgUserInformation userInfo =
new MgUserInformation("Anonymous",
"");<BR> MgSite site = new
MgSite();</FONT></P>
<P><FONT face=Arial color=#0000ff
size=2>
site.Open(userInfo);</FONT></P>
<P><FONT face=Arial color=#0000ff
size=2> sessionId =
site.CreateSession();</FONT></P>
<P><FONT face=Arial color=#0000ff
size=2>
MapGuideApi.TerminateSockets();<BR> }<BR>
catch (MgException mge)<BR>
{<BR>
Response.Write(mge.GetMessage());<BR>
Response.Write(mge.GetDetails());<BR>
MapGuideApi.TerminateSockets();<BR> }<BR>%></FONT></P>
<P><FONT face=Arial color=#0000ff size=2><html></FONT></P>
<P><FONT face=Arial color=#0000ff size=2><head><BR>
<title>Viewer Sample Application</title><BR>
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type"><BR> <meta
http-equiv="content-script-type" content="text/javascript"
/><BR> <meta http-equiv="content-style-type"
content="text/css" /><BR> <link
href="styles/globalstyles.css" rel="stylesheet"
type="text/css"><BR></head></FONT></P><FONT face=Arial color=#0000ff
size=2>
<P><BR><frameset rows="110,*" frameborder="NO" border="0"
framespacing="0"><BR> <frame src="title.aspx?AppName=DWF"
name="TitleFrame" scrolling="NO" noresize><BR> <frame
src="/mapguide/mapviewernet/dwfviewer.aspx?SESSION=<%= sessionId
%>&WEBLAYOUT=<%= webLayout %>"
name="ViewerFrame"><BR></frameset><noframes></noframes></P>
<P></html></FONT></P>
<DIV>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Steven J Reed
[mailto:sjreed@edcomputing.com] <BR><B>Sent:</B> Monday, March 27, 2006 1:34
PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] A simple .Net sample<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Bob,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I think you are missing
something…you gave a PHP example when the thread is asking for a simple .Net
example! I suppose I can translate the PHP to Java and go from there, but
what I was asking for is a .Net example!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Even so, the simple
example that you provided is the first simple piece of code I’ve
seen!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Simple .Net
applications don’t involve hard-coding stuff in HTML. .Net programmers are
used to dragging an object from the Toolbar onto a page, setting properties on
the Property Pages, maybe writing some code in VB or C# in the Page_Load method,
and having the application work. Once the app works in a rudimentary form,
they may add server-side event handling routines to add functionality.
Almost as a last resort and/or to improve performance, consideration is given to
client side code.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Examples of .Net
applications are typically distributed as .Net solutions or projects, where the
user can unzip a complete application and run it without having to make
significant changes. Really good samples are distributed in both VB and
C#!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">…Steve<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Robert
Bray [mailto:robert.bray@autodesk.com] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, March 26, 2006 1:47
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName
w:st="on">users@mapguide.osgeo.org</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [mapguide-users] A simple .Net
sample</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Ok guys, I am a little
confused by this thread. Here is the most basic example (in
PHP):<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><?php<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
include '../mapviewerphp/constants.php';<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
MgInitializeWebTier('C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\webconfig.ini');<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
$site = new MgSite();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
$site->Open(new MgUserInformation("Anonymous",
""));<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
$sessionId = $site->CreateSession();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
$webLayout =
"Library://Samples/Sheboygan/Layouts/SheboyganPhp.WebLayout";<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">?><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><html><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><head><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier">
<title>Simple Sample
Application</title><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"></head><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><body
marginheight="0" marginwidth="0"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"><iframe
id="viewerFrame" width="100%" height="100%" frameborder=0 scrolling="no"
src="../mapviewerphp/ajaxviewer.php?SESSION=<?= $sessionId
?>&WEBLAYOUT=<?= $webLayout
?>"></iframe><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"></body><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Courier color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Courier"></html><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">That’s it that’s all.
As long as you define a web layout in MapGuide Studio you do not need to worry
about the content of the mapviewerphp folder. That is installed as part of the
product and is not part of the sample.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">If you do not like the
UI provided by MapGuide, turn off all of the elements in the web layout and
create your own with HTML/JavaScript. I think Alain also posted an example to
this list recently that modified the default viewer, placing the legend/layer
control on the right.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Am I missing something
wrt your questions?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Bob<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
triplederby100-propos@yahoo.com [mailto:triplederby100-propos@yahoo.com]
<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, March 24, 2006
6:26 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName
w:st="on">users@mapguide.osgeo.org</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [mapguide-users] A simple .Net
sample</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face=Courier size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">... and not to mention the
processing of template files and replacing string tokens with some real values
at runtime :) Very crafty. But it appears that's what the "viewer" (as designed)
is comprising of. <BR><BR>But there must be a straight-forward way of getting a
client up and running, be it in .NET or whatever, like I am with MapServer. I
second what you
say.<BR><BR>Kaarigar<BR>====================<o:p></o:p></SPAN></FONT></P>
<DIV>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"><BR><BR>----- Original Message
----<BR>From: Steven J Reed <sjreed@edcomputing.com><BR>To:
<st1:PersonName w:st="on">users@mapguide.osgeo.org</st1:PersonName><BR>Sent:
Friday, March 24, 2006 5:13:19 PM<BR>Subject: [mapguide-users] A simple .Net
sample<BR><BR><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><XMETA
content="text/html; charset=us-ascii" http-equiv="Content-Type"><XMETA
name="Generator"
content="Microsoft Word 11 (filtered medium)"></XMETA></XMETA>Would it be too
much to ask for a simple .Net sample, say something where the code was all in
one place? The current ajaxviewersample and dwfviewersample are really
just shells that include code from other directories, then when you look at them
they include still more code. It is difficult to determine what is really
needed!<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">While I’m asking, why aren’t the
.Net samples in the form of .Net projects? If you really want .Net
programmers to use this put it in the form they are used to seeing, which is not
something that has to be put in a Program Files\ MapGuideOpenSource\
WebServerExtensions\ www directory!<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">And of course these samples should
have much of the initialization code in the code-behind module, not embedded in
the html code. <U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Enough bitching, but it really looks
like the .Net implementation is an
afterthought!<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></P></DIV></DIV></DIV></DIV></BODY></HTML>