The following gives me an error of \"The server tag is not well formed\"
You can add the onclick event at run time, like this:
DeleteButton.Attributes.Add("onclick", "'return confirm('Are you sure you want to delete '" + Username);