session end automatic when delete folder in asp.net 2.0
-
when I am deleting physical folder from application using bellow code then control going in Session_End in global.asax so page is redirecting to login page again means logout if (Directory.Exists(Server.MapPath(FolderPath))) { DirectoryInfo diSource = new DirectoryInfo(Server.MapPath(FolderPath).ToString()); foreach (FileInfo fi in diSource.GetFiles()) { fi.IsReadOnly = false; fi.Delete(); } Directory.Delete(Server.MapPath(FolderPath).ToString(), true); } so how to control this?
You get the best out of others when you give the best of yourself.
-
when I am deleting physical folder from application using bellow code then control going in Session_End in global.asax so page is redirecting to login page again means logout if (Directory.Exists(Server.MapPath(FolderPath))) { DirectoryInfo diSource = new DirectoryInfo(Server.MapPath(FolderPath).ToString()); foreach (FileInfo fi in diSource.GetFiles()) { fi.IsReadOnly = false; fi.Delete(); } Directory.Delete(Server.MapPath(FolderPath).ToString(), true); } so how to control this?
You get the best out of others when you give the best of yourself.
-
how to assign asp.net user permission.
You get the best out of others when you give the best of yourself.