Hi
you can look this code and refer in your code this will help you
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TestConnectionString %>" SelectCommand="SELECT * FROM [UserMaster] WHERE ([EMPID] = @EMPID)">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="EMPID" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>