Home How to add to Model value via form without repeated POST?
Reply: 0

How to add to Model value via form without repeated POST?

user603
1#
user603 Published in August 15, 2018, 11:16 am

How can I add to a model property in successive View text boxes without posting the form after each box? I cannot change the model to simply add a new field.

Doesnt work:

<p><label>What is customer Id:</label> @Html.TextBoxFor(c => @Model.CV.Description)</p>
<p><label>Rep Id:</label>@Html.TextBoxFor(c => @Model.CV.Description)</p>

Goal:

customer id: 123
rep id: james

after the user eventually hits Submit (which triggers a post)
Model.CV.Description= 123james
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.296848 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO