First of all your question is a bit unclear,
What do you want to do?
There are Three ways. if successfully logins
3) using the below code you can show a dialog
C# also provides to register client side script.
For this the below link will help you.
Hope you have got the answer