For showing user name in your text box's on click event, you need to add onClick event to your text box and right the code to fetch your user name from your database and as the result of your select query you can directly assign that to your text box by writing like this...
TextBox1.Text = ....