Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
If Condition for Both Integer and float
Hareesh Bollepalli
9y
382
1
Reply
Hello All,
Here I have one problem my text box allowed only integer and float value. if eny thing else will give error message.Please find my code Below.
if (!int.TryParse(x, out value))
{
ModelState.AddModelError("","eeroro message");
}
Please help me
Thanks in advance...
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
tpl, tack parallel library, thread
How to set Random No Logic