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
Questions with the message log for the user
Apr 12 2018 8:06 AM
When sending a log to the user, the message appears with the line name along with the numeral, how can I separate and keep the message: Cell B for line 1 and / or cell C for line 1 must be filled.
However, the following log is displayed:
Cell B for line1 and / or cell C for line 1 must be filled. How could I be solving this? follow my code.
privatevoidPreliminaryVerification (IEnumerable data)
{
int
i = 0;
bool
imported =
falso
;
foreach
(var line
in
data)
{
i = i + 1;
// Valida se pelo menos uma das colunas NumProcess estiver preenchida
if
(line.ItemArray [1] .ToString () ==
""
&& line.ItemArray [2] .ToString () ==
""
)
{
//
My problem here is that by showing the log, instead of showing line 1, it shows // line1. Could someone please help me?
log.Append (
"The B cell"
+ (i) +
"and / or C cell"
+ (i) +
"must be completed.
"
);
fileInvalidated =
true
;
}
}
Reply
Answers (
3
)
how to do edit,update,delete functionality in jquery plugin
Compilation does not pass the message log line to the user