1:protected void Button1_Click(object sender, EventArgs e)
{
string pSavedPath1 = Server.MapPath("http://images.cnblogs.com/ProductImages/6114413/绿.jpg");
if (File.Exists(pSavedPath1))
{
FileInfo fi = new FileInfo(pSavedPath1);
if (fi.Attributes.ToString().IndexOf("ReadOnly") != -1)
fi.Attributes = FileAttributes.Normal;
File.Delete(pSavedPath1);
}
}