i have a text box and label ..
database table contain sno, name
sno is primary key so it does not take duplicate value.
how we can name can't take duplicate value...if it already exist then show msg already exist.
need solution urgently..
In your Stored procedure check
IF NOT EXISTS(SELECT Sno FROM Table WHERE Name=@Name) BEGIN --WRITE INSERT QUERY HERE END
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.