.net 2.0 beta DetailsView question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I've been going through the basic tutorials in .net 2.0 regarding the
creation of master/detail pages and using the DetailsView control to
edit records.

It's all pretty simple in the tutorials. But what if you want to check
for database errors? How do you put all the database interaction into a
try/catch block?

In an ideal world, all of the database constraints would be duplicated
in validation controls, so the form could only submit valid data. But I
would like to make sure that, if somehow the database rejected the
input, this could trigger a friendly error message to the user and
possibly an alert to the administrator.

Thanks,

John Hoge

.



Relevant Pages

  • Re: Detailsview - how do I add the first record?
    ... I have a brand new database table and I open the page that has a ... DetailsView control that is bound to that table it does not show ... I have tried adding blank values (by querying the SQL Server schema ...
    (microsoft.public.dotnet.framework.aspnet)
  • DetailsView - the Very First Record
    ... I have a brand new database table and I open the page that has a ... DetailsView control that is bound to that table it does not show ... I have tried adding blank values (by querying the SQL Server schema ...
    (microsoft.public.dotnet.languages.csharp)
  • Detailsview - how do I add the first record?
    ... I have a brand new database table and I open the page that has a ... DetailsView control that is bound to that table it does not show ... I have tried adding blank values (by querying the SQL Server schema ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problems with DetailsView and SQLDataSource - changing data source
    ... I have a page with a DetailsView control and a SQLDataSource control. ... The SQLDataSource control is connected to an Access database. ... An OLE DB Provider was not specified in the ConnectionString. ...
    (microsoft.public.dotnet.framework.aspnet)