Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detailsview - how to clear fields?
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Detailsview - how to clear fields?
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01292282
Message ID:
01292282
Views:
226
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!
____________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform