Is it possible to use jscript components within asp.net forms which is written with razor engine?
|
Yes, you can use the JavaScript components within asp.net forms which is written with razor engine.
| |
Lets assume I have a form which is created by razor tag helpers and there is field called user id which needs to be implemented as autocompleteTextBox.
|
Yes, you can implement our Autocomplete using both JavaScript and as html razor tag helpers. Our component will be rendered both ways in the razor page.
| |
Can I get the value from ejAutoCompleteTextbox (js) and set the selected value to asp.net form field?
|
Yes, you can get the values from both JavaScript and html razor syntax Autocomplete component in the controller.
| |
Or this hybrid approach is bad idea?
|
No, it is not a bad idea to render our Autocomplete control as JavaScript control within asp.net forms with razor engine.
|
We have also prepared a sample for your reference below:
https://www.syncfusion.com/downloads/support/forum/130920/ze/AutocompleteForms760525046
If the shared details and sample doesn’t meet your requirement, please give us more information to provide an alternative solution.
Regards,
Arun P.