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
Robson Amaral
NA
132
17.3k
Validation field date required
May 21 2018 1:59 PM
Dear fellow users, I'm trying to send an error message to the user, but only my Data logs are not working, could you please help me out? Note, I put breakpoints to compile my
application, but it does not fall within the code referring to Data, it was to work : /
This is the part of the code that is not falling on the breakpoint and not displaying the logs for the user:
private
void
setProcessInter (Process process, Interested party, DataRow line,
int
i)
{
i = 4;
i ++;
try
{
if
(! line.ItemArray [17] .ToString ().) Equals (
""
))
processInterested.CodeSep =
decimal
.Parse (line.ItemArray [17] .ToString ());
else
processInterested.CodeSep =
null
;
try
{
DateTime DateSep = DateTime.Parse (line.ItemArray [18] .ToString ());
processInterested.DateSep = DateSep;
}
catch
{
logErro.Append (
"The cell S"
+ (line [
"index"
]) +
"must be filled with a date."
);
fileInvalidated =
true
;
}
try
{
DateTime DataEntrySefaz = DateTime.Parse (line.ItemArray [19] .ToString ());
processInterested.DateInputSelf = DateEntrySelf;
}
catch
{
logErro.Append (
"The T cell"
+ (line [
"index"
]) +
"must be filled with a date."
);
fileInvalidated =
true
;
}
try
{
DateTime DateRequestPgto = DateTime.Parse (line.ItemArray [0] .ToString ());
processInterestedDate = DateRequisitionoPgto;
}
catch
{
logErro.Append (
"cell A"
+ (row [
"index"
]) +
"must be filled with a date."
);
fileInvalidated =
true
;
}
processInterested.Interested = interested;
catch
(Exception error)
{
fileInvalidated =
true
;
logErro.Append (error.Message +
"<br>"
);
}
}
Reply
Answers (
7
)
any example of 3 tier architecture in mvc??
Approve and Reject button display in id wise in db