|
|
Posted 21/07/2005 15:24:41 |
|
|
Forum 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 |
|
|
|
|
Posted 22/07/2005 07:29:09 |
|
|
Support 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?
|
|
|
|
Posted 22/07/2005 10:59:21 |
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 27/07/2005 18:54:29
Posts: 7,
Visits: 6
|
|
| I would, but my support has "expired"
|
|
|
|
Posted 22/07/2005 11:40:55 |
|
|
Supreme 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
|
|
|
|
Posted 22/07/2005 21:16:42 |
|
|
Forum 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.
|
|
|
|
Posted 23/07/2005 22:03:36 |
|
|
Supreme 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
|
|
|
|
Posted 27/07/2005 18:57:13 |
|
|
Forum 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.
|
|
|
|