How should I send the Key value of the selected item in AutoComplete Textbox to controller instead of the Text value?
Loading
How should I send the Key value of the selected item in AutoComplete Textbox to controller instead of the Text value?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankajkumar PatelPosted Dec 16, 2022, 1:48 PM
Hi Gopi,
Try following:
Index.cshtml
HomeController.cs
For more details:
Hope this will help you!
Jignesh KumarPosted Dec 16, 2022, 6:14 AM
Hello Gopi,
Please use this one,
https://www.c-sharpcorner.com/UploadFile/0c1bb2/creating-autocomplete-textbox-in-Asp-Net-mvc-5/
https://stackoverflow.com/questions/4815330/jquery-ui-autocomplete-with-item-and-id