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…
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…
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…
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…
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
  • 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 =…
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) { …
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…
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 =…
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
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. And I try to update it with Javascript:
Jeremy
  • 5,061
  • 13
  • 42
  • 76
1
2 3
8 9