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
vidhya
NA
324
88.3k
avoid the duplicate,only once need to display in mvc
Jul 31 2013 8:37 AM
I need to display the testname, if the testname repeats i need not to avoid it?
i used like this but duplicate is displaying.
@{
var tname="null" ;
}
@foreach (StudentGradeBook x in Model.Student)
{
if(!(tname.Equals(@x.TestName)))
{
<th>@x.TestName</th>
}
tname = @x.TestName.ToString();
}
If x contains
test
test
test
testing
testing
But i need to display
test
testing
Reply
Answers (
47
)
list of tools(open source) of code review in asp.net
ASP.net i have created web page using oracle db con, in that