moo

MVC 5 Controller Actions

I have an MVC application with a front form for a calculator that pulls in the inputs (serial numbers and times for components) from a table from an sql server.I have an algorithm for calculator in the controller that I’m wanting to send the fields with times in them through the action in the controller, and then have it return the value of the calculation back to a field on the front form.Should I be going about this using a submit input (I’ve tried this but it tries to send all my fields, serial numbers and times), or should I be doing this via an ajax call via javascript that acts when I press the button? via /r/dotnet https://ift.tt/2MFsc8K

Categories: Uncategorized