private void CheckFriendshipStatus()
{
var obj1 = Session["UserId"].ToString();
var obj2 = Session["CurrentProfileId"].ToString();
if (obj1 == obj2)
{
btnAddAsFriend.Visible = false;
}
I also tried
private
void
CheckFriendshipStatus()
{
if
(Object.Equals(Session[
"UserId"
].ToString(), Session[
"CurrentProfileId"
].ToString()))
{
btnAddAsFriend.Visible =
false
;
}
I couldn't solve this please help me to solve this.