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. read html controls in code behind file

read html controls in code behind file

Scheduled Pinned Locked Moved ASP.NET
htmltutorial
4 Posts 4 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.
  • D Offline
    D Offline
    deepalititi
    wrote on last edited by
    #1

    i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.

    I C 2 Replies Last reply
    0
    • D deepalititi

      i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      U can only use that control in code behind which has ranAt="Server" So take id of textbox and runAt="Server" in html code Best regard Pathan

      ---------------------------------------------------

      V 1 Reply Last reply
      0
      • D deepalititi

        i have html textbox control. i want to read it in my code behind file i.e. .cs file. but i will not able to get that control's name in list. please tell me how to read html contols at code behind file.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        You need to add runat="server" in order to see a control on the server side.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        1 Reply Last reply
        0
        • I Imran Khan Pathan

          U can only use that control in code behind which has ranAt="Server" So take id of textbox and runAt="Server" in html code Best regard Pathan

          ---------------------------------------------------

          V Offline
          V Offline
          VanithaVasu
          wrote on last edited by
          #4

          U can also set the same by right clicking the control and select "Run as Server control"

          VanithaVasu

          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