c# - Pass parameters in Html.BeginForm that don't come from <input> -


i using html.beginform("details", "controllername", formmethod.post) send parameters controller. working fine. however, works <input> tags within html. there way post value of other tags? example <span> or else? @ end in actionresult details(), receive values within <span>?

thank you

no, can't. input, select , textarea controls values posted server. can set in background hidden input control span value can't expect span automatically posted.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - href attribute breaking an element -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -