<br clear="all">Hello&nbsp; I managed to run <a href="http://ASP.NET">ASP.NET</a> Ajax with Mono. <br><br>1-) Check out mcs (you need more than System.Web.Extensions to compile)&nbsp; <span style="font-weight: bold;">svn co svn://anonsvn.mono-
<a href="http://project.com/viewcvs/trunk/mcs/">project.com/viewcvs/trunk/mcs/</a>&nbsp; </span>you might also need svn://anonsvn.mono-<a href="http://project.com/viewcvs/trunk/mono/">project.com/viewcvs/trunk/mono/</a>&nbsp;<span style="font-weight: bold;">
&nbsp; </span>I am not sure if it is necessary since I already have them in the same dir.<br><br>2-) Change to (where ever you checked out)/mcs/class/System.Web.Extensions directory and run <span style="font-weight: bold;">make
<br><br><span style="font-weight: bold;"></span></span>3-) Create a new Web Project via Monodevelop or create a Default.aspx file from command line.<br><br>4-) Add your built dll to your project . It resides on (where ever you checked out)/mcs/class/lib/net_2_0/System.Web.Extensions.dll
<br><br>5-) Make a Default.aspx file as below:<br><br><span style="font-style: italic;">&lt;%@ Page Language=&quot;C#&quot; %&gt;</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">
&lt;script runat=&quot;server&quot;&gt;</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; protected void Button1_Click(object sender, EventArgs e)</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; {</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Label Label1 = (Label)this.FindControl(&quot;Label1&quot;);</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label1.Text = &quot;Refreshed at &quot; +</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateTime.Now.ToString();</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp; }</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;/script&gt;</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">
http://www.w3.org/1999/xhtml</a>&quot; &gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;head runat=&quot;server&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp; &lt;title&gt;Untitled Page&lt;/title&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;style type=&quot;text/css&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp; #UpdatePanel1 { </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:300px; height:100px;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;/style&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;/head&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;body&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;div style=&quot;padding-top: 10px&quot;&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:ScriptManager&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot;&gt;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ContentTemplate&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;Panel created.&quot;&gt;&lt;/asp:Label&gt;&lt;br /&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; OnClick=&quot;Button1_Click&quot; Text=&quot;Button&quot; /&gt;
</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ContentTemplate&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:UpdatePanel&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;/div&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;/form&gt;</span>
<br style="font-style: italic;"><span style="font-style: italic;">&lt;/body&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&lt;/html&gt;</span><br style="font-style: italic;"><br>6-) Add a Web.config
 file to your project and fill it as below:<br><br><span style="font-style: italic;">&lt;?xml version=&quot;1.0&quot;?&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&lt;configuration&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;configSections&gt;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;sectionGroup name=&quot;system.web.extensions&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;System.Web.Configuration.SystemWebExtensionsSectionGroup
, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sectionGroup name=&quot;scripting&quot; 
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;System.Web.Configuration.ScriptingSectionGroup, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PublicKeyToken=31bf3856ad364e35&quot;&gt;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;section name=&quot;scriptResourceHandler&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection
, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.Extensions, Version=1.0.61025.0, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; 
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requirePermission=&quot;false&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allowDefinition=&quot;MachineToApplication&quot;/&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sectionGroup name=&quot;webServices&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;
System.Web.Configuration.ScriptingWebServicesSectionGroup, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.Extensions, Version=1.0.61025.0, </span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;section name=&quot;jsonSerialization&quot; 
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;System.Web.Configuration.ScriptingJsonSerializationSection, </span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.Extensions, Version=1.0.61025.0, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; </span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requirePermission=&quot;false&quot; allowDefinition=&quot;Everywhere&quot; /&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;section name=&quot;profileService&quot; 
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;System.Web.Configuration.ScriptingProfileServiceSection, </span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.Extensions, Version=1.0.61025.0, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; </span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requirePermission=&quot;false&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allowDefinition=&quot;MachineToApplication&quot; /&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;section name=&quot;authenticationService&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&quot;
System.Web.Configuration.ScriptingAuthenticationServiceSection, </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Web.Extensions, Version=1.0.61025.0, </span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requirePermission=&quot;false&quot; 
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allowDefinition=&quot;MachineToApplication&quot; /&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sectionGroup&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sectionGroup&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;/sectionGroup&gt;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp; &lt;/configSections&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&lt;system.web&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;compilation debug=&quot;true&quot; /&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp; &lt;pages&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;controls&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add tagPrefix=&quot;asp&quot; namespace=&quot;
System.Web.UI&quot; assembly=&quot;System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;/controls&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;/pages&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp; &lt;httpModules&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;add name=&quot;ScriptModule&quot; type=&quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0
, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;/httpModules&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;httpHandlers&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;remove verb=&quot;*&quot; path=&quot;*.asmx&quot;/&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;*&quot; path=&quot;*.asmx&quot; validate=&quot;false&quot; type=&quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions
, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;*&quot; path=&quot;*_AppService.axd&quot; validate=&quot;false&quot; type=&quot;
System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;&nbsp;&nbsp; &lt;add verb=&quot;GET,HEAD&quot; path=&quot;ScriptResource.axd&quot; type=&quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; validate=&quot;false&quot;/&gt;
</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; &lt;/httpHandlers&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">
&lt;/system.web&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; </span><br style="font-style: italic;"><span style="font-style: italic;">
&lt;/configuration&gt;</span><span style="font-weight: bold;"><br></span><br>7-) Run the <span style="font-weight: bold;">xsp2</span> from the same directory and open a browser and type <a href="http://localhost:8080">http://localhost:8080
</a><br><br>You should see that the Label is updated in ajax way.<br><br>Note that you cannot access the controls in your page without FindControl. This seems to me a bug in aspx parser of Mono. Since the below code works well on windows as well but not on mono:
<br><br><span style="font-style: italic;">protected void Button1_Click(object sender, EventArgs e)</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; {</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Label Label1 = (Label)this.FindControl(&quot;Label1&quot;);</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label1.Text = &quot;Refreshed at &quot; +</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DateTime.Now.ToString();</span><br style="font-style: italic;">
<span style="font-style: italic;">&nbsp;&nbsp;&nbsp; }</span><br style="font-style: italic;"><span style="font-weight: bold;"><br></span><br style="font-weight: bold;"><br><span style="font-weight: bold;"><span style="font-weight: bold;">
</span><br></span><span style="font-weight: bold;"><br></span>