The select query doesn't have a column
empname
but you are trying to bind it with gridview
For eg;
select column1,column2 from tablename
if you have query like this then mark up should be like this:
<asp:Label ID="label1" runat="server" Text='<%#Eval("column1") %>'></asp:Label>
<asp:Label ID="label2" runat="server" Text='<%#Eval("column2") %>'></asp:Label>