Message
From
23/02/2010 08:14:32
 
 
To
23/02/2010 08:09:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01450438
Message ID:
01450452
Views:
40
>>Hi,
>>
>>I've reached Step 13 in Jump Start: Web Forms Application - C# where I am binding the text boxes to the data. I set the BindingSource property of all the text boxes to "Order" and when I try to set the BindingSourceMember of the OrderID textbox I get this error:
>>
>>Object reference not set to an instance of an object.
>>
>>at OakLeaf.MM.Main.Builders.mmBindingSourceWebMemberEditForm.GetDatabases()....
>>
>>Any ideas what could be wrong?
>
>Hi Frank,
>
>The issue is going to be most likely in the previous step where you have code in the Page_Load. Double check all the lines of code there and there order. If you don't find something let me know and I can do a debugging session with you on GTM to find what object.
>Tim

Tim,

I just copied the code straight from the help file. The only difference is that the code generated by VS was this:
protected void Page_Load(object sender, EventArgs e)
as opposed to it being this in the help:
private void Page_Load(object sender, System.EventArgs e)
Note the use of Protected versus Private. Would that cause the problem?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View