protected void DeleteAvatar_Click(object sender, System.EventArgs e) { SueetieUsers.DeleteAvatar(CurrentUserID); string path = HttpContext.Current.Server.MapPath("/") + SueetieConfiguration.Get().AvatarSettings.AvatarFolderPath + CurrentUserID.ToString() + ".jpg"; System.IO.File.Delete(path); SueetieUsers.ClearUserCache(CurrentUserID); Response.Redirect("myaccountinfo.aspx?dv=1&bio=2"); //BindData(); }