Howdy Paul, The class, LiteralControl does not have a Page_Load method as it is a control :)
List of members: http://msdn.microsoft.com/en-us/library/system.web.ui.literalcontrol_members.aspx You may need to override Init or Load depending on what you are tyring to do. Also, http://msdn.microsoft.com/en-us/library/ms178472.aspx is a great resource for figuring out which methods are executed in the lifecycle of a control. Cheers, Daniel From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone Sent: Tuesday, 16 March 2010 10:48 AM To: ozMOSS Subject: Code support Hi all, Can anyone tell me what's wrong with this snippet. I'm trying to override a server control that inherits from LiteralControl and am getting the following error. 'CEO.SharePoint.Controls.ShowNEALSlogo.Page_Load(object, System.EventArgs)': no suitable method found to override using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.SharePoint; namespace CEO.SharePoint.Controls { public class ShowNEALSlogo : LiteralControl { public override void Page_Load(object sender, System.EventArgs e) { if ((SPContext.Current.ListItem["NEALS"] as Boolean) == True) Kind regards, Paul Noone --------------------------------------------------- Online Developer Information Communication and Technology Catholic Ecuation Office, Sydney p: (02) 9568 8461 f: (02) 9568 8483 e: [email protected]<mailto:[email protected]> w: http://www.ceosyd.catholic.edu.au/
_______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
