Louie,
My guess would be that your problem is located with your binding
container that you mentioned towards the end of your post.
Could you post your code the parts of your code that are relevant?
Jeff
wrote:
> This JUST started happening, I don't remember changing any code:
> When I click the submit button on my form, stuff is supposed to happen
> (which it does correctly) and a result message is posted back to the
> same page at the top of my form alerting the user that their request
> has been approved or denied. However, the end result is an error
> message:
>
> Error Message:
> Object reference not set to an instance of an object.
>
> Error Stack:
> System.NullReferenceException: Object reference not set to an instance
> of an object.
> at System.Web.UI.Control.OnBubbleEvent(Object source, EventArgs
> args)
> at System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e)
> at
> System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
> eventArgument)
> at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> sourceControl, String eventArgument)
> at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection
> postData)
> at System.Web.UI.Page.ProcessRequestMain()
>
>
> As you can see, there no reference to any line of code, when I step
> thru it, everything gets executed as it should. Data that is to be
> saved to the database is saved. The error message appears immediately
> after the last 'end sub', and all code is executed. It only seems
> to happen when a page is supposed to post back to itself.
>
> I started erasing code for the button, all of it, until all the code
> that was left for the button was "end sub," and it still drew the
> same error. However, when I put a Response.Redirect() statement in the
> code, it redirects to the new page properly. Also there is no Page_Load
> code for the page (it starts as an empty form).
>
> Under a "locals" observation while running the program, I noticed
> that under the 'me' watch, the "binding container" value =
> <error: an exception of type: {System.NullReferenceException}
> occurred>. I don't know what this means, or if that's the problem.