private void btnSave_Click(object sender, EventArgs e) { FriendExtensionInfo query = new FriendExtensionInfo { ExensionImg = this.hidpic.Value, ExensiontRemark = this.txtName.Text.Trim(), ExtensionId = int.Parse(base.Request.QueryString["ExtensionId"]) }; if (ProductCommentHelper.UpdateFriendExtension(query)) { this.ShowMsg("修改成功", true); if (!string.IsNullOrEmpty(this.hidpicdel.Value)) { foreach (string str in this.hidpicdel.Value.Split(new char[] { '|' })) { string path = str; path = base.Server.MapPath(path); if (File.Exists(path)) { File.Delete(path); } } } this.hidpicdel.Value = ""; } else { this.ShowMsg("修改失败", false); } }