Questions tagged [hiddenfield]
125 questions
29
votes
8 answers
Get the Value of an asp:HiddenField using jQuery
I have two pages. From the first page, I open a modal with a querystring that holds that value of a client name. I then use this to set a hiddenfield on the modal that opened.
I need a TextBox on the new modal to display the value that has been sent…

Melanie
- 584
- 2
- 11
- 31
10
votes
4 answers
Which is best to use ViewState or hiddenfield
I have a page in which I want to maintain the value of object between post backs.
I am thinking of two ways to maintain the value of objects
Store the value in View Sate
Store the value in hidden field
which is best option to use based on…

Vijjendra
- 24,223
- 12
- 60
- 92
4
votes
3 answers
Spring security core plugin - How to access User id from a hidden field
I'm trying to set a hiddenField in a "create" view, where the field is set to the id of the currently logged in user. Which you get from the "springSecurityService.principal.id" property.
I was wondering if it was possible to do this exclusively…

srkiNZ84
- 3,558
- 5
- 30
- 37
4
votes
2 answers
HiddenField Value property back to empty when "postback" using AJAX UpdatePanel
I have been working with this issue for hours and cant find a solution.
Now Im working in a web Application and my first problem was that I wanted to create an XML dynamically...Then I realized that after a postback, the Xml was resseting. Then I…

Symphonicmind
- 100
- 2
- 2
- 6
4
votes
2 answers
Swift iOS- How to hide label then make it appear after a certain time period
I have a label that gets hidden when a button is pressed. After a certain time period like 60 secs I want the label to reappear. I'd assume I do that in viewDidAppear, How would i do that?
@IBOutlet weak var myLabel: UILabel!
override func…

Lance Samaria
- 17,576
- 18
- 108
- 256
4
votes
1 answer
create hidden field in code behind access to hidden field value
I want to create a hidden html field:
string _ResultHidden = "";
var Detail_Like = MainClass.objFestivalImageLike.FestivalImageLike_List(MD.User_ID);
foreach (var item in Detail_Like)
{
if (item.Festival_Image_Like_Count == 1)
{
…

Ali Nazari
- 43
- 1
- 5
4
votes
4 answers
Access hiddenfield using Jquery
I have a page that's derived from a master page. On this page, I have a hiddenfield ("hfUser"). How can I access this "hfUser" control and get/set its value using JQuery?
I've tried variants of this:
$(document).ready(function() {
var test =…

keyboardP
- 68,824
- 13
- 156
- 205
3
votes
3 answers
Value of a HiddenField not updating
I've tried both of these:
And I try to update it with Javascript: