Delete comment accordingly to whether the current user is the one who posted the comment in ListView
===

How do i delete the comment accordingly to the user that post that particular comment using ListView? I have added a button and make it Visible false so that in my .cs code when i checked that the current login user is the one who posted the comment, the delete button will be visible. Currently, i tried this:

    if (currentUser.UserName == Eval("UserName").ToString())
        {
            Control deleteButton = e.Item.FindControl("Button2");
            deleteButton.Visible = true;
        }

But this is giving me error. It States that 'System.EventArgs' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'System.EventArgs' could be found. I placed this code in my PostComment button. Have i done wrong anywhere?