1. this may html
2. i want to pass id="hostname" to c#.net homecontroller. how?
1. this may html
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.
Rajkiran SwainPosted Jun 1, 2023, 6:18 PM
Amit MohantyPosted Jun 1, 2023, 9:46 AM
Add an action method in your controller to receive the data:
Modify your HTML form to include a button or an event that triggers the AJAX request. For example: