Questions tagged [hiddenfield]

125 questions
2
votes
2 answers

HiddenField Value Lost on Postback

I have some JavaScript that sets the value of a HiddenField and then forces a postback. I can trace through this JavaScript and it appears to work correctly. However, when I test the value of the HiddenField from the page's Load event, it is no…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
2
votes
3 answers

use Repeater Item index in Hidden Field

How to set Item index in a Repeater Column with Hidden Fields in asp.net. I wrote the following code but it does not show the index value in hidden field.
Dinesh Sharma
  • 117
  • 4
  • 5
  • 16
2
votes
1 answer

Object reference not set to an instance of an object

I am trying to assign values to the hiddenfields duting page_load..but its throwing System.NullReferenceException.. This is the code iam using in the page_load event.. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) …
Shijilal
  • 2,175
  • 10
  • 32
  • 55
2
votes
0 answers

hidden field in angular is null on form submit

I'm loading a page with a question and options where the question id is a hidden filed to pass to a method to save the answer. but the field is returned as null though the output value from a http service is stored on page init. please share your…
prabas
  • 53
  • 1
  • 1
  • 9
2
votes
1 answer

Iterate Through HiddenFields with JQuery

How can I iterate through each of these hidden fields and change each one's value with JQuery?
John Smith
  • 33
  • 1
  • 3
2
votes
1 answer

Getting value of an HiddenField inserting it from template - Flask

I'm a newbie in Python/Flask programmation and I'm having some problems to return the value of my HiddenField inserting it from my template. This my Form Class: class DownloadForm(Form): link = HiddenField() download = SubmitField('Download') And…
marco93
  • 33
  • 6
2
votes
3 answers

getting value of a hidden cell of grid view

I have a vb.net application in which a grid view is there with a hidden field. I want to get the value of that hidden cell Code behind statusGrdvw.Rows(assign).Cells(5).Text
2
votes
1 answer

ASP.NET Empty Label Text

I am using set value with jquery but i couldn't get value from label jquery code is here $(document).ready(function() { $("input:radio[name=paketler]").click(function () { var value = $(this).val(); …
2
votes
1 answer

If CheckAll is selected then select all, if not then deselect all from Gridview using jQuery

I just stuck on manipulating with checkboxes, i have one Gridview having first column as checkbox in header as well as in rows, Checkboxes are bound with iID value from the database. I want to delete rows sometimes "All" (by Header checkbox) and…
Dhaval Marthak
  • 17,246
  • 6
  • 46
  • 68
2
votes
4 answers

How to get hidden field value on page load in asp.net?

I want to use this…
rohit singh
  • 550
  • 1
  • 11
  • 32
2
votes
1 answer

ASP.net sensitive information storage

I'm having a small trouble with ASP.net. I have a small DataTable that i need to be page dependent and also user inaccessible. What i mean is: If i store the data from the DataTable inside a Hiddenfield, the hiddenfield is page dependent…
osmiumbin
  • 329
  • 2
  • 6
  • 15
2
votes
2 answers

Is it safe to use a hidden input form comment id?

I am developing a facebook similar wall, and im a bit corious, is it safe to use a hidden input storing the stream id? So in my db for comments i have 4 fields, the comment id, stream id, user id, and comment text stream id is for to locate which…
Side
  • 1,753
  • 9
  • 35
  • 64
1
vote
1 answer

How to fill my hidden fields with IDs from my tables with Jquery

I am using MVC3 on my project. I have a view with tables and a textarea. Each row have "Name" Column and a ID that is not displayed in the rows. Also I have: @Html.HiddenFor(model => model.SelectedQuestions) When a user clicks on a row I want that…
ps__
  • 365
  • 1
  • 4
  • 19
1
vote
1 answer

Unable to cast HiddenField to I.Convertible

I have 2 DataLists where one is nested in the other one. I have one line (Dim QID....) that keeps giving me problems, no matter what combination of code I can find online. I just want to be able to get the Hidden Field to show up as an integer so…
Jamie
  • 1,579
  • 8
  • 34
  • 74
1
vote
2 answers

how do i identify from what website a user submitted a form?

I want to identify from what website a user has submitted a contact form. The contact form is an include file (.shtml) and this file is being used on two different websites. Since it's only one file (include), will a javascript if...else statement…
raydev
  • 25
  • 1
  • 6
1
2
3
8 9