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
533
2.4k
598k
ienumerable string use of unassigned local variable c# using
Jan 28 2016 6:16 AM
Hello sir,
In mvc 4 c# view page:-
@{
IEnumerable<string> ListGroupID;
}
@if (TempData["Message"] != null) {
var listTopline = TempData["Message"] as EMGUI.ViewModel.TopLineToExposure;
var ListGroupIds = listTopline.GroupIds;
ListGroupID = ListGroupIds.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Distinct();
}
Problem: when I am tring to use 'ListGroupID' inside foreach there is error occuring "ienumerable string use of unassigned local variable". How to solve this?
@foreach (var item in ListGroupID)
{
}
Reply
Answers (
2
)
update rows in gridview with one button for all the gridview
MS Access DataBase Backup & Restore through Server in c#