0
Answer

how bind two action methods in same view page using Asp.net MVC

Photo of anand m

anand m

1d
91
1

Hello Team,

Currently I am working in development project  and I am trying to load in page load dropdown and texbox in the same .Cshtml page.

But  to call two action methods in the same view.cshml , I have texbox other details I am using one action method and other dropdown I am using another action method calling to laod from DB.

1. public IActionResult Index(H1BOptionDetails H1Bdetails)(textbox data loading using this action method)
2.public async Task<IActionResult> Details()- loading data to dropdown using this action methods.

<form action method I am calling only one action method and how to call two action methods in the same view.csthl page?