Getting data from a query and placing the result in a label.
<p>I want to populate a label with the employees name when they enter a badge number in the source page but im new to programming and don't know how to tackle this. The database connection has been established and it is successful. can you guys help me with this?       just an fyi this is for a time sheet application. </p>

<pre><code>        string Badge = "100000" + Request.Form["xBadgeTextBox"];
        string Date = Request.Form["xWeekDropDownBox"];
        string Hours = Request.Form["xWlengthDropDownBox"];



        if (Badge != null)
        {

            string cmdquery = "SELECT EMPLOYEE_NAME FROM Employees WHERE Badge ='" + Badge + "'";

            OracleCommand cmd = new OracleCommand(cmdquery);
            cmd.Connection = conn;
            cmd.CommandType = CommandType.Text;


        }
</code></pre>
