以下是.net的代码。
string strFriendID = this.txtBoxReceiver.Text;
BusinessRule br = new BusinessRule();
br.RemoveFriend(this.Session["username"].ToString(),strFriendID);
this.txtBoxReceiver.Text = "";
//这一句是对某个页面刷新。
Response.Write("<script>parent.FriendList.window.location.reload();</script>");