Ejemplo n.º 1
0
 public static void deleteroom()
 {
     if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin"))
     {
         myDAL     obj = new myDAL();
         DataTable set = obj.singlepics(id).Tables[0];
         foreach (DataRow item in set.Rows)
         {
             System.IO.File.Delete(HttpRuntime.AppDomainAppPath + "/" + item["pic"].ToString());
         }
         obj.deleteroom(id);
     }
 }
Ejemplo n.º 2
0
        public static string singlepics(int id)
        {
            myDAL obj = new myDAL();

            return(obj.singlepics(id).GetXml());
        }