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
356.6k
How to Validate only Currency in datatable column asp.net c#
Nov 17 2016 1:13 AM
int value1;
float value2;
if (int.TryParse(ds.Tables[s].Rows[i][Columncountvalue + 9].ToString(), out value1) || !float.TryParse(ds.Tables[s].Rows[i][Columncountvalue + 9].ToString().Trim(), out value2))
{
if (value1 <= 0)
{
//Alert message
}
}
validate the currency column have only numbers. now the problem is if the value is (12,000 ) in this format statement is executed and show the alert message.how solve this issue.now how to validate the currency.
Reply
Answers (
1
)
How to implement OData In Asp.Net Web Api 2
search functionality in core mvc