Seeking advice on achieving a specific functionality in ASP.NET Web Form that is similar to the AutocompleteExtender, but requires more flexibility. Here is what I aim to accomplish:
- There are 2 TextBox fields on the form: CompanyName and CompanyRef (a unique abbreviated identifier for companies).
- User enters the CompanyName.
- Once there are 3 characters in the CompanyName field, an internal webservice is triggered (possibly AJAX).
- The webservice evaluates the entered text and generates a 3-character representation - for example, "Stack" might result in STA0001.
- If STA0001 already exists in the database, the webservice would return STA0002 or the next available variation.
- The generated value will be populated into the CompanyRef TextBox.
- Users should have the ability to edit the CompanyRef if needed.
I am not looking for specific code examples, but rather guidance on how to approach this task at a higher level. If there are any missing components or resources you can suggest, it would be greatly appreciated as my searches online haven't yielded helpful results so far. Maybe I'm not using the right search terms.