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:
Jeremy
  • 5,365
  • 14
  • 51
  • 80
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
  • 333
  • 1
  • 3
  • 13
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
  • 51,323
  • 85
  • 226
  • 363
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
  • 863
  • 5
  • 12
  • 28
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
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…
Chintan
  • 2,768
  • 4
  • 27
  • 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 …
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
1
2 3
8 9