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
Vikas Ahlawat
NA
564
817.8k
Session become null atomatically, Why?
Aug 1 2011 3:27 AM
when i execure the code for delete a folder then the session became null?
why?
code for delete the folder here
DirectoryInfo thisThumnials = new DirectoryInfo(Server.MapPath("../Albums/" + categoryID + "/Images/" + "/ThumnailImages"));
DeleteFolder(thisThumnials);
public void DeleteFolder(DirectoryInfo df)
{
try
{
if (df.Exists)
{
foreach (FileInfo fi in df.GetFiles())
{
fi.Delete();
}
if (df.Exists)
{
df.Delete();
}
}
}
catch
{
}
}
Reply
Answers (
5
)
Regarding Base & Derived Class
Unable to assign string value to 2D array