[Mono-list] ASP.NET and System.Web.UI.Page
Jackson Harper
jackson@ximian.com
Mon, 19 Jan 2004 13:22:05 -0800
You need to reference the System.Web, System.Data, and System.Drawing
libraries /r:System.Web.dll /r:System.Data.dll /r:System.Drawing.dll
Cheers,
Jackson
On Mon, 2004-01-19 at 13:17, Shawn Vose wrote:
> Curious to know if the code behind is supported in mono and if so how
> would you go about compiling all of the source code in an asp.net(C#)
> application?
>
> I attempted to compile a simple asp.net app using code behind and I
> received a complaint from mcs saying the following:
>
> mcs -t:library -L /usr/local/lib PublicBase.cs
> PublicBase.cs(8) error CS0246: Cannot find type `System.Web.UI.Page'
> Compilation failed: 1 error(s), 0 warnings
>
> The cs class is:
> using System;
>
> namespace Generic.GUI
> {
> /// <summary>
> /// Summary description for PublicBase.
> /// </summary>
> public class PublicBase: System.Web.UI.Page
> {
> protected Generic.GUI.Controls.PublicTemplate Template;
> protected override void OnInit(EventArgs e)
> {
> Template =
> (Generic.GUI.Controls.PublicTemplate)LoadControl("~/GUI/Controls/PublicTemplate.ascx");
> this.Controls.Add(Template);
> base.OnInit(e);
> }
> }
> }
>
>
> Any suggestions as to what I am doing wrong to get this to compile would
> be greatly appreciated.
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list