InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Edit Header Expand / Collapse
Author
Message
Posted 21/07/2005 15:24:41
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 27/07/2005 18:54:29
Posts: 7, Visits: 6
I am trying to edit the header.ascx file to remove the register button.  When I just delete the button, I get the following asp error when I run the forums:

any ideas?  what am I doing wrong?

Server Error in '/aeaforums' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]   InstantASP.InstantForum.WebSite.header1.LoadImages()   InstantASP.InstantForum.WebSite.header1.Page_Load(Object Sender, EventArgs E)   System.Web.UI.Control.OnLoad(EventArgs e) +67   System.Web.UI.Control.LoadRecursive() +35   System.Web.UI.Control.LoadRecursive() +98   System.Web.UI.Page.ProcessRequestMain() +750
Post #7739
Posted 22/07/2005 07:29:09


Support Supremo

Support SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport SupremoSupport Supremo

Group: Customers
Last Login: 13/11/2008 12:44:07
Posts: 568, Visits: 2,507
Dear Kkister,

Could you please open a ticket at my.instantasp.co.uk, so we can help you to resolve this issue?

Post #7740
Posted 22/07/2005 10:59:21
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 27/07/2005 18:54:29
Posts: 7, Visits: 6
I would, but my support has "expired"
Post #7747
Posted 22/07/2005 11:40:55


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Customers
Last Login: 30/12/2008 00:19:04
Posts: 693, Visits: 2,419
You might try to just set the 'visible' property of the button to 'false' ?? (instead of deleting the button all together)


..:: Bare ::..
http://www.livingformetal.com
Post #7748
Posted 22/07/2005 21:16:42
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 27/07/2005 18:54:29
Posts: 7, Visits: 6
I must be doing something wrong or looking at this the wrong way.  If I make changes to the header.ascx file, I can see the changes on the website.  If I edit, (or even delete) the header.ascx.vb file, e.g. to make the register button invisible as you suggest, nothing happens.  The page behaves as if nothing was changed.
Post #7756
Posted 23/07/2005 22:03:36


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Customers
Last Login: 30/12/2008 00:19:04
Posts: 693, Visits: 2,419
If making a change to the code-behind you would need to re-compile (build) the InstantForum project... for the settings to take effect....


..:: Bare ::..
http://www.livingformetal.com
Post #7764
Posted 27/07/2005 18:57:13
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 27/07/2005 18:54:29
Posts: 7, Visits: 6
Thanks.  That makes sense.  I am new to asp.net applications having used asp for awhile. 
Post #7810
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 11:55pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.047. 9 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.