Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hidden Field problem

Hidden Field problem

Scheduled Pinned Locked Moved ASP.NET
helpjavascript
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ais07
    wrote on last edited by
    #1

    Hi There, I am retrieving Hidden Field value through javascript but it is showing me one error that is document.getElementById("ctl00_ContentPlaceHolder1_hfUpd") has no properties I tried all following ways also:- document.getElementById("hid").value document.getElementById('hid').value document.getElementById("ctl00_ContentPlaceHolder1_hfUpd").value //Using ControlID Previously I tried used following code and it working fine. document.getElementById("hid").value But This Code Is Not Working.Is There any problem of Content Place Holder. My Code To retrieve value:- var hidflag=document.getElementById('<%=hfUpd.ClientID%>').value

    L 1 Reply Last reply
    0
    • A ais07

      Hi There, I am retrieving Hidden Field value through javascript but it is showing me one error that is document.getElementById("ctl00_ContentPlaceHolder1_hfUpd") has no properties I tried all following ways also:- document.getElementById("hid").value document.getElementById('hid').value document.getElementById("ctl00_ContentPlaceHolder1_hfUpd").value //Using ControlID Previously I tried used following code and it working fine. document.getElementById("hid").value But This Code Is Not Working.Is There any problem of Content Place Holder. My Code To retrieve value:- var hidflag=document.getElementById('<%=hfUpd.ClientID%>').value

      L Offline
      L Offline
      l laxmikant
      wrote on last edited by
      #2

      try $get('<%=hdf.ClientID%'>.value

      N 1 Reply Last reply
      0
      • L l laxmikant

        try $get('<%=hdf.ClientID%'>.value

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        $get is an AJAX function that is simply shorthand for document.getElementById


        only two letters away from being an asset

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups