Question
ASP - Can't change the correct hidden field in loop.
I have a table with a repeating region in ASP. In the table
there are a
dropdown menu and a hiddenfield (amongst other items). I have a javascript
function that is applied to the onChange event of the dropdown menu. The
function updates the value of the hidden field to 'Y' when the dropdown
changes. The default value is 'N'.
The problem I have is that I cannot get the correct hidden field in the
repeat region to update. It always updates the hidden field in the very
first row of the repeated table even though I am changing the dropdown that
is in row no.3 for example. I know that the this is happening as I currently
have the hidded fields set to display as textfields.
Could somebody please show me how I can get the correct hidden field in the
row that holds the changed dropdown to update please.
dropdown menu and a hiddenfield (amongst other items). I have a javascript
function that is applied to the onChange event of the dropdown menu. The
function updates the value of the hidden field to 'Y' when the dropdown
changes. The default value is 'N'.
The problem I have is that I cannot get the correct hidden field in the
repeat region to update. It always updates the hidden field in the very
first row of the repeated table even though I am changing the dropdown that
is in row no.3 for example. I know that the this is happening as I currently
have the hidded fields set to display as textfields.
Could somebody please show me how I can get the correct hidden field in the
row that holds the changed dropdown to update please.
