swathi ponna
asked on
Request.Form[] not working in MVC controller
I am using MVC with Jquery architecture. When i create button with submit type Request.Form is getting value but after i change this button type to button then
Request.Form["selectedDate "] in controller is not working. Please help on this.
when Request.Form["selectedDate "] in controller has selected value in dropdown when button type is submit.
when Request.Form["selectedDate "] in controller has null value when button type is button.
how to resolve this?
Request.Form["selectedDate
when Request.Form["selectedDate
when Request.Form["selectedDate
how to resolve this?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Please post the code so we can have a better understanding. Also, any specifc reason you don't want to use the button type submit? It is one of the easiest way to submit your form.
Please refer to: https://www.w3schools.com/TAGs/att_button_type.asp
Regards,
Chinmay.