You can show a string message on the Button WebControl's click without refreshing the page by setting the Button's
Attributes property accordingly on the form_Load event.
By Setting this property it will add javascript code at button click..
btn.Attributes.Add("onclick", "return confirm('" & strMessage & "');")