Questions tagged [hiddenfield]
128 questions
30
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…
![](../../users/profiles/808034.webp)
Melanie
- 634
- 2
- 10
- 29
9
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…
![](../../users/profiles/165873.webp)
Vijjendra
- 20,365
- 9
- 54
- 86
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…
![](../../users/profiles/365445.webp)
srkiNZ84
- 3,408
- 3
- 24
- 32
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…
![](../../users/profiles/1156796.webp)
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…
![](../../users/profiles/4833705.webp)
Lance Samaria
- 11,429
- 8
- 67
- 159
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 =…
![](../../users/profiles/187697.webp)
keyboardP
- 66,755
- 13
- 145
- 199
3
votes
2 answers
How to get dynamic id using HiddenField in Datalist
I am getting posts in datalist. I would like to show post id but i coundn't perfectly..
I would like to get post id with hidden field, any idea?
I've tried on button click:
protected void post_button_Click(object sender, EventArgs e)
{
…
![](../../users/profiles/5326369.webp)
Cagatay
- 313
- 1
- 3
- 12
3
votes
4 answers
When should I consider to use SessionState to keep my variable values?
Is is possible to say something like
"If you have those situations then SessionState is a must to use for storing your values between postbacks."
Can you list me the basic reasons which forces an asp.net developer to switch SessionState from…
![](../../users/profiles/136141.webp)
pencilCake
- 45,443
- 73
- 211
- 346
3
votes
6 answers
Hidden Field losing its Value on postback
I have a ascx page where I am using a hidden field to store the value of a the drop down box as it is generated using a google address finder. My problem is that when I try to store the value directly in the hidden field:
hfDdlVerifyID.Value =…
![](../../users/profiles/350344.webp)
Ratan
- 813
- 4
- 11
- 27
3
votes
1 answer
How to access hidden_field in controller in Ruby on rails
Question: How to access hidden field value post_id from file view/comments/_comment.html.erb and use it in controllers/dashboards_controller.rb?
- there are 2 controllers - dashboard and comments, and using gem act_as_commentable_with_threading…
user2107733
3
votes
4 answers
javascript ASP.NET hiddenfield get value from code behind
I am trying to integrate my codes to Google Chart API. I want to manually set google chart title and axis column names from code behind. I tried below code but doesn't work. Any suggestions?
ASPX file
![](../../users/profiles/1833843.webp)
NeoMatrix
- 29
- 1
- 4
3
votes
2 answers
Selenium WebDriver - get options from hidden select
I want to get all the options from a hidden select.
Select has "display: none;" part so I ran into a problem.
2
votes
3 answers
Value is not found in boundfield in gridview?
I am trying to assing value to hiddenfield on indexchange event of dropdownlist ! Actually the problem is when I am trying to update my record i can not find value of that hidden field ! Kindly give me solution or suggest any another option ! Thank…
![](../../users/profiles/1162201.webp)
Chintan
- 2,508
- 4
- 23
- 43
2
votes
2 answers
How to get and set a value to and from an asp HiddenField
I want to add a Boolean value to a HiddenField ASP.NET controller so that the value can be retained after postback. Here is my code:
Public Property IsAddingNewCause() As Boolean
Get
Return IsAddingNewCauseField.value
End Get
…
![](../../users/profiles/398499.webp)
JF Beaulieu
- 4,126
- 19
- 70
- 103
2
votes
3 answers
Value of a HiddenField not updating
I've tried both of these:
And I try to update it with Javascript: