Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detailsview - how to clear fields?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Detailsview - how to clear fields?
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01292282
Message ID:
01292282
Vues:
227
I've got a page with several detailsview controls attached to SQLDatasources for each table.

I use the DetailsView controls strictly for inserting records. I have corresponding GridViews that are used for display and editing of each of the tables involved.

I only make detailsviews enabled and visible if someone hits the ADD button for one of the tables. The detailsviews are set with startmode=insert. Once the record is inserted I disable and make invisible.

Problem - If someone inserts a record into a table using the detailsview, the next time they go to insert a record, the detailsview shows the data from the previously inserted record.

How can I clear the detailsview so the fields are blank prior to enabling/making visible?

I see a method called ClearChildState in help, but naturally it is a protected method and is not available for use (naturally - that would be too useful).
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform