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
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01292282
Message ID:
01292285
Views:
15
>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).

Good you asked, I think I have the same problem too.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform