try to hard code the SQL command, cause i think you are passing the lable text value in the page load and at that time it has no value.
try it like this:
Quote:Dim sqlCmd As New SqlCommand("select command"
also try to put your code in page.ispostback if/then and see if its working
If Not Page.IsPostBack Then
// put your code here