i want textbox particularly not accept apostroph(name's)
example:
how to validate textbox me typed fruit's particularly ' not saved databse.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
spots Knight10 reputationPosted Sep 16, 2014, 9:06 AM EDT
String savefield = textbox.Text.Replace("'","`");
or
String savefield = textbox.Text.Replace("'","");
Ramesh MaruthiRank #937 · 2.2K reputationPosted Sep 16, 2014, 6:45 AM EDT
*Valid characters: Alphabets and
space.