Questions tagged [hiddenfield]
125 questions
0
votes
2 answers
Easiest way to append a string with different values by checking if hiddenfields are empty
I'm building an audit trail in C#, asp.net. On the .aspx page I have several hidden fields which associate themselves with regular fields (i.e. txtFirstName -> firstNameTrackerHiddenField). I have it set up so that when the user inputs/selects data…

Brian W
- 21
- 1
- 8
0
votes
2 answers
Set hidden field using HTML Helper to Date Time Now
I'm looking to do something in ASP.NET MVC 5 to set a hidden field to current date and time. Something like:
@Html.HiddenFor(model => model.CommentTime, new { @Value=DateTime(Now) })

Eric Bishard
- 5,201
- 7
- 51
- 75
0
votes
0 answers
populate HTML field from Hidden Field Value
I have 2 forms. On the first form I want to place the username in a hidden field. Then, on the second form I want to use that user name as the value of username field.
0
votes
2 answers
SQL statment not running with the value of a hidden field
Peace be to you all, I am working on a "forgotten username" system and my code goes like follows :-
First form :-
`
0
votes
2 answers
In thymeleaf using link to pass a hidden value
Thymeleaf a using a link to pass a hidden value is possible
i am tried but the value not get in the pagee..
Add Division

Prasanth A R
- 4,046
- 9
- 48
- 76
0
votes
1 answer
How might I clear a hiddenfield value when the page is refresh in ASP.NET?
How can I clear the value of an asp:HiddenField control when the user hits the refresh button in the browser?

ACP
- 34,682
- 100
- 231
- 371
0
votes
2 answers
Setting value of hiddenfield with Jquery and retrieve value server side
My scenario is this. User clicks on button and a modal dialog appears with a checkboxlist. When the user makes their selections and clicks 'ok' in client click event I want to set a hiddenfield with the list of values the user selected. The user…

DoImagine
- 37
- 1
- 10
0
votes
1 answer
Use C# to declare HiddenField's value & Javascript Variable
I need to declare the 'text value' of the dropdownlist 'dropCallbackReason' into the 'ValueHiddenField' ID of the so that I can then use it as a javascript variable.
I need to be able to declare the HiddenField through C# as aswell as declaring the…

wilsonlego
- 97
- 1
- 2
- 15
0
votes
2 answers
Need to change textcolor inside textarea with hiddenfield results
I have a form, which has a text area. I want to be able to set the text color of the text inside of the text area when they click the color intended.
So far, I have it to where when they click the color, it sets the hex color inside of a…

micker
- 135
- 2
- 13
0
votes
2 answers
How to get the content of a hidden sibling-div to a button - JQuery related
Maybe I've searched poorly, but so far I have not found the answer to my question. First the code of the Javascript function: