Try
{
insert progress...}
Catch(Exception e1)
{
//justify error from e1
if(e1.ToString().find("unique"))
Response.write("重复输入,数据库出错")
}