TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Raja
NA
2k
355.9k
How to validate if text box have only special character?
Sep 23 2016 2:54 AM
i want to validate the text box.this is text box contain item number availability check .if the user enters only special character like( !@#$%^&+)(**)_)":}{?> )throw the alert message.<br /><div> </div><div>item number : m_test-120</div> <strong>What I have tried:</strong><br /> <br /> i use <br /> <br /> Regex r = new Regex(@"[~`!@#$%^&*()+=|\\{}':;.,<>/?[\]""_-]");<br /> if (r.IsMatch(tbxspirno.Text.ToString().Trim()))<br /> {<br /> Master.ShowMessage("Enter valid item number", MessageHelper.MessageType.Information);<br /> }
Reply
Answers (
5
)
progress bar not working..
access text file from server/localhost in windows c#