[MonoDevelop] ASP.NET and partial classes

Łukasz Zachulski lzachulski at gmail.com
Thu Jun 7 20:28:07 EDT 2007


Hi,
How can I compile codebehind file with partial class declaration under 
MonoDevelop for ASP.NET project?


Every time I try to do this using MD or gmcs I am getting the same error:

Index.aspx.cs(22,25): error CS0103: The name `_tmpControl' does not 
exist in the context of `ScrollbarControl.Pages.Index'


Source of Index.aspx.cs:

using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace ScrollbarControl.Pages
{
         public partial class Index : Page
         {

                 protected void Page_Load(Object sender, EventArgs e)
                 {
                         _tmpControl.DataBind();
                 }

         }
}


If I remove the line with _tmpControl or just don't compile the file 
with partial class everything works.

-- 

Łukasz Zachulski


More information about the Monodevelop-list mailing list