In asp.net web page got username, password, emailid from login page using session. In edit profile page user want to change username and emailid and it has been updated in sql db. Before going to update first select the particular user record using session, get new username and new emailid check with records except that user record. If no one in that record means allow user to update otherwise show the msg “already exist”. How to do this using stored procedure?
Any one pls provide stored procedure coding for this?
1 Answer