Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Reply
Session become null atomatically, Why?
Vikas Ahlawat
13 years ago
3.4k
Reply
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
{
}
}
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Regarding Base & Derived Class
Unable to assign string value to 2D array