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
sangeetha k
NA
207
51.6k
passing data from controller to view is showing NAN value
Apr 30 2018 4:51 AM
i wish to fetch the count of the row in table using which i wish to restrict the display of the panel inside the page using jquery .
here goes the #dal layer code
int
LoanId;
using
(TempoDevRM01Entities borrowerDBEntity =
new
TempoDevRM01Entities())
{
LoanId = borrowerDBEntity.ReferralDetails.Where(x => x.LoanNo == LoanNo).Select(x => x.LoanID).FirstOrDefault();
//LoanId= GetLoanId(LoanNo);
int
hardshipcount=borrowerDBEntity.HardshipDiscoveries.Where(x=>x.LoanID==LoanId).Select(x=>x.HardshipDiscoveryID).Count();
return
hardshipcount;
}
#view code
var hardshipid =parseInt( @ViewBag.HardshipCount);
if
(hardshipid < 1) {
debugger;
$(
"#panel3"
).attr(
"disabled"
,
"disabled"
);
$(
"#panel3"
).css(
'cursor'
,
'not-allowed'
);
}
else
{
$(
"#reviewsubmit"
).removeAttr(
"disabled"
);
$(
"#panel3"
).css(
'cursor'
,
'POINTER'
);
}
but it shows NAN value in locals is anythigng wrong with these things?
Reply
Answers (
2
)
How can we get the exact datain combobox2 on selecting comb1
Find Repeater control in a function