Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple User Controls Need to Bind to Business Object
Message
De
08/07/2005 16:43:49
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01023613
Message ID:
01030736
Vues:
19
Kevin,

Sorry for the delay, I got side tracked with some other work.

I contacted Infragistics and confirmed what I assumed; the user controls were not being instantiated when I thought and therefore there were no controls to bind to. They suggested a work around and now the controls are instantiated before the business object is called. Unfortunately the controls are still not binding.

I then did a test where I put my “Save” button on the user control and called the business object in the user control code behind and then it raised the StateChangeHandler event and bound the data back to the dataset and saved the data.

So, when I call the business objects to either retrieve or save data, the controls on the user controls do not sense the StateChange. When I call the business objects from the User Controls, then the controls sense the StateChange and bind.

Just a side note on the DB2 issues. I have written a VFP program to generate DB2 Select, Insert, Update and Delete Sprocs and a program to write the custom data access class code because the VS.net tools could not talk to DB2 in order to auto generate this for me. Now the business objects use typed datasets and custom data access classes that call stored procedures and so far it is working well.

Thanks for the help.

Bill Williams
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform