DanCaparroz
DanCaparroz

Reputation: 820

Getting a value from a label at POST

There's a place into my screen that I populate a label with a specific string value after some interaction with my user during the runtime. I use javascript for that.

Is there anyway to get the value of this lavel with my controller after its POST method is activated ?

Thanks, guys !

Upvotes: 0

Views: 1521

Answers (1)

David Fox
David Fox

Reputation: 10753

Option #1

Put the value in an HTML <input> element with a name attribute? Might need to dress down the input element, since it will look like a textbox.

Option #2

Mirror the value in a hidden input <input type="hidden" value="yourValue" /> inside the form you're posting.

Upvotes: 3

Related Questions