I am working on a web application. I have two text fields, one is txtEmployeeID and one is txtEmployeeName . What I'm trying to do here is when the user enters EmployeeID at txtEmployeeID , the employee name will appear in txtEmployeeName . So far, this part has worked. However, if an EmployeeID starts with bunch 0 , say 00000345 , the user needs to enter all 00000345 into EmployeeID to show that employeeName . I am wondering if there is a way for the user to simply enter 345 , and then that 00000345 employeeName will appear in txtEmployeeName ? Help will be received.
Example
EmployeeID EmployeeName 00000345 James Murray
In the text box.
Employee ID: 345
He will display
Employee Name: James Murray
My db query
@Employee_ID varchar(8) = NULL SELECT s.Employee_ID, p.FIRST_NAME, p.LAST_NAME FROM [dbo].[Employee] e INNER JOIN [dbo].[Person] p ON e.PERSON_ID = p.PERSON_ID WHERE p.Employee_ID = @Employee_ID
source share