Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want set some value on server side on textbox change event and when we click submit button then get value . withought using session state.

Thanks
Ravi Rajput
Posted
Updated 25-Sep-15 1:14am

You can use formcollection. In mvc on button submit you can post all values in the form, & in controller side you can get that element value by using formcollection.
 
Share this answer
 
Hello,

If you Your view page is bind with the any Model, then you can access the value directly in controller by using the Model.Value

and if your view is not bind with any Model then you can access the values in form collection.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900