If you do it client-side, then you need to call a web service, have that web service query the database, and return the results via JSON. Is that really what you are looking to do? If you are, the webservice is the trick.
Or, you can set AutoPostBack="true"
, the page posts back to the server, and from there query the DB and load the results in the label.