I don't want to allow, any alphabet exactly after < in a textbox/textfiled.
User should not be able to submit if he/she enters "
For Example
Don't allow -
1) k
2)
3) 1
4) ceK<<<<<
Allow -
1) <
2) k<
3) l>
4) K<
5) )1w<.l
6) d<1b
7) B<,e
8) .kk<<<<<>a
C# Code -
[AllowHtml]
[RegularExpression(@"X", ErrorMessage = "Error Message for Don't allowed Text")]
public string Textbox { get; set; }
Please provide the value of X, which will meet my rquirement.
Note - The solution should work for multiline textbox also.
Note - The solution should work for multiline textbox also.
2 Replies
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.
Aurobinda TripathyPosted Jun 1, 2020, 7:16 AM
Arvind KushwahaPosted May 31, 2020, 11:54 AM