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
Abhilash J A
535
2.4k
596.3k
How to use distinct() in integer variables using mvc c#?
Feb 1 2016 11:47 PM
Hello Sir,
string AgencyIds = "";
List<SelectListItem> objList = new List<SelectListItem>();
objList = "This "objList" variable contain stored procedure result that is list of ids";
foreach (var items in objList)
{
AgencyIds = AgencyIds + items.agencyID + ",";
}
Output of the AgencyIds is like this:- 14,14,14,14,15,16,11,11,11 like that...
how to get distinct 'items.agencyID' (ie, AgencyIds) with comma for each AgencyIds using c# code?
But I want output like this:=
AgencyIds = 14,15,16,11,
like that...
Reply
Answers (
4
)
Do MS Office required to Bind Excel Data into Grdiview
opening file in treeview