restrict duplicate data insertion using textbox
in my table i already have a male
if enter ma le it allows the data to insert into sql how to restrict these kind of records
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj Kumar MandalPosted Apr 29, 2015, 9:17 AM
str = str.toLower().Trim();
Will convert your string to lower case and remove all the whitespaces between text.
muthukumarPosted Apr 29, 2015, 8:18 AM
Rajkiran SwainPosted Apr 29, 2015, 7:10 AM
Siva SankarPosted Apr 29, 2015, 7:02 AM
Trim the text which was entered in textbox....
like... txtname.Text.Trim()