J
jhoge123
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
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