i'm developing a web abased application in
VB .NET. i created a count button which displays the number of records available in a table. the code is as below:
Dim sqlCount As String = "SELECT COUNT(code) from subarea"
lblCount.Text = sqlCount & " records. "
lblCount.Visible = True
i want the result of the sql to be dislayed in a lablel. How do i do that? what should i write instead of sqlCount in the below code:
lblCount.Text = sqlCount & " records. "
Thanks