A
Andy B
I have a masterPage code file that looks like below file. For some reason I
keep getting compile error 1519: invalid token '{' in property or member
definition. I know it has something to do with my Menu property, because
when I comment it out or delete it then it works... any ideas?
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using News;
using System.IO;
public partial class Layout : System.Web.UI.MasterPage
{
//return the main menu so other pages can use it.
public Menu {
get {
return MainMenu; }
}
protected void Page_Load(object sender, EventArgs e) {
}
}
keep getting compile error 1519: invalid token '{' in property or member
definition. I know it has something to do with my Menu property, because
when I comment it out or delete it then it works... any ideas?
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using News;
using System.IO;
public partial class Layout : System.Web.UI.MasterPage
{
//return the main menu so other pages can use it.
public Menu {
get {
return MainMenu; }
}
protected void Page_Load(object sender, EventArgs e) {
}
}