Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete with Business Object from a Web Form
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00852521
Message ID:
00854929
Vues:
23
Kevin,

> Try out the latest version and let me know if anything changes.

First, thanks for your quick responses.

I still have the same problem, get the same message. I've done some playing around and comparisons. I tried setting up a delete button in the datagrid and used the code from the "Jump Start: Web Form App... C# : Step 15". And it worked with no problems. So tracing and comparing (datagrid vs button on the details page), I found that the difference and problem originates in the StateChangeHandler method. The mmDatagrid's StateChangeHandler method doesn't include a case option for "mmBusinessState.Deleted" as the mmTextBox does. That is the difference, but things go wrong for me because even though the mmTextBox's has the case option for deleted (which has no code to be executed), the case option for bind "mmBusinessState.Bind" is what gets executed. This option executes the OnDataBind method, which is where things fail for me.

Any ideas? I really needing to get past this and get into my bigger projects, with the framework.

I could call a stored procedure via the business object, rather than its delete method. But I know I would be sacrificing a lot of great functionality. Any other suggestions?

Thanks,
Carter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform