How to access asp hidden field data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mavericksandy
    New Member
    • Oct 2011
    • 1

    How to access asp hidden field data

    I have hidden fields..

    Code:
    <input type="hidden" id="totalrecords" name="totalrecords" value="1">
       <input type="hidden" id="totalrecords" name="totalrecords" value="2">
       <input type="hidden" id="totalrecords" name="totalrecords" value="3">
       <input type="hidden" id="totalrecords" name="totalrecords" value="4">
       <input type="hidden" id="totalrecords" name="totalrecords" value="5">
       <%
        'trying to access it here
        totalParts=totalrecords(0).value
        %>*
    I am trying to access the hidden field values in classic ASP , but not able to access...Could you please help me out with this..I am kinda stuck here trying to access the values....
  • multinett
    New Member
    • Sep 2011
    • 16

    #2
    i coudn't really understand you problem - but i see, you use your ID multiple!
    ID means: only one time in the script!
    maybe it will help you.

    Comment

    Working...