Following are the events used in opening confirmation box from server side.
ClientScript.RegisterStartupScript: Registers the startup script with the Page object.
The first argument is eventTarget, which is the control that is triggering the action.
The second argument is event args means any additional information you might want to send with your postback.
Following is the example for opening up confirmation box