private void btnSave_Click(object sender, EventArgs e) { FriendExtensionInfo query = new FriendExtensionInfo { ExensionImg = this.hidpic.Value, ExensiontRemark = this.txtName.Text.Trim() }; if (ProductCommentHelper.InsertFriendExtension(query)) { this.ShowMsg("保存成功", true); this.hidpic.Value = ""; this.txtName.Text = ""; } else { this.ShowMsg("保存失败", false); } }