Re: Avoid inserting a duplicate record on page submit?
- From: "coosa" <coosa76@xxxxxxxxx>
- Date: 29 May 2006 11:38:00 -0700
I Agree 100% with Dale.
It's a common knowledge to add a primary key in your database table; by
chance perhaps even unique constraints for certain non-key columns.
A good practice is to implement a procedure that inserts records and
the procedure should be inside a SQL TRY CATCH that returns back a user
friendly error that the data already exists.
You cannot rely aalone on the asp.net interface to validate your data.
But even though u don't want to touch that, cosider the Postback in
ASP.NET.
.
- References:
- Avoid inserting a duplicate record on page submit?
- From: planetthoughtful
- Re: Avoid inserting a duplicate record on page submit?
- From: planetthoughtful
- Avoid inserting a duplicate record on page submit?
- Prev by Date: Server Side custom exception
- Next by Date: Re: Adding an icon to the application taskbar
- Previous by thread: Re: Avoid inserting a duplicate record on page submit?
- Next by thread: Re: Avoid inserting a duplicate record on page submit?
- Index(es):
Relevant Pages
|