Catch duplicate primary key exeption
- From: "ad" <ad@xxxxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 21:36:59 +0800
The code below can only catch common excption.
I want to catch duplicate primary key exeption and do something more.
How can I catch duplicate primary key exeption
try
{
Insert a record to table
}
catch (????)
{
Do some thing more
}
catch (Exception err)
{
Label1.Text=err.Message;
}
.
- Follow-Ups:
- Re: Catch duplicate primary key exeption
- From: hashimisayed
- Re: Catch duplicate primary key exeption
- From: Marina
- Re: Catch duplicate primary key exeption
- Prev by Date: Re: Tricky JavaScript/ASP.NET Question
- Next by Date: Password Hashing and User Authentication
- Previous by thread: validation control
- Next by thread: Re: Catch duplicate primary key exeption
- Index(es):
Loading