I have to provide search functionality to end user and for that purpose i am providing a dropdown and a textbox, the dropdown has options like EmployeeID, DisplayName, City and after selecting the dropdown value he needs to enter a value in the textbox.
If the user selects EmployeeID then the value will be of type Int and if he selects Name or city the value will be of type string.
Public Employee getEmpInfo(object querystring, object queryvalue)
{
// code to get the empplyee info
}
I would like to know if there is any better approach than using object type ?