The problem that you are facing is that showing a popup window in a web environment is not triggered from .NET code. It's actually triggered from javascript, so your logic is going to have to be on the client side in a javascript object.
If you want to show a popup, then I'd suggest that you need to look into using jQuery which has many handy
popup utilities available[
^].