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
Phaneendra Chakravaram
NA
490
100.1k
how to remove particular image in list
Jan 30 2016 11:29 AM
cntitem = 0;
DirectoryInfo dirst = new DirectoryInfo(MapPath("~/images"));
FileInfo[] file = dirst.GetFiles();
ArrayList list = new ArrayList();
foreach (FileInfo file2 in file)
{
list.Add("/Images/"+file2);
cntitem++;
}
///below code is working but i dnt want this type ("~/images/blank.gif" i want this image only remove)
list.RemoveAt(2);//we can delete using index particular iamge
list.RemoveAt(3);//
Session["cnt"] = cntitem;
Reply
Answers (
2
)
Asp.Net MVC Treeview in Multi table Data
creating responsive aspx pages using bootstrap