This is most definitely because btnView.click propagates up and eventually fires the tr 's click event - causing ...
stackoverflow.com