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. how can i set the value in textbox using ASP

how can i set the value in textbox using ASP

Scheduled Pinned Locked Moved Web Development
questionhelp
5 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.
  • K Offline
    K Offline
    koolprasad2003
    wrote on last edited by
    #1

    hello frnd, i am developed a website using ASP i want to set the value in my textbox at runtime but i can't. my textbox is like i have tried using hidTest.value = "Assign" but failed.. what can i do ???? plz help regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

    R V F 3 Replies Last reply
    0
    • K koolprasad2003

      hello frnd, i am developed a website using ASP i want to set the value in my textbox at runtime but i can't. my textbox is like i have tried using hidTest.value = "Assign" but failed.. what can i do ???? plz help regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

      R Offline
      R Offline
      Revathij
      wrote on last edited by
      #2

      U can use javascript to set value

      K 1 Reply Last reply
      0
      • R Revathij

        U can use javascript to set value

        K Offline
        K Offline
        koolprasad2003
        wrote on last edited by
        #3

        thankx for reply, but i don't want to use scripting any other way ???? regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

        1 Reply Last reply
        0
        • K koolprasad2003

          hello frnd, i am developed a website using ASP i want to set the value in my textbox at runtime but i can't. my textbox is like i have tried using hidTest.value = "Assign" but failed.. what can i do ???? plz help regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          koolprasad2003 wrote:

          <input type="hidden" value="" name="hidTest" **value="<%=ValueForHiddenFieldFromServer%>"**>

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          • K koolprasad2003

            hello frnd, i am developed a website using ASP i want to set the value in my textbox at runtime but i can't. my textbox is like i have tried using hidTest.value = "Assign" but failed.. what can i do ???? plz help regards, koolprasad2003:) Be a good listener...Because Opprtunity knoughts softly...N-Joy

            F Offline
            F Offline
            Fred_Smith
            wrote on last edited by
            #5

            assign a runat="server" property, and an ID, then you can set it's value in your code behind ... in code-behind: hidText.value = "xyz" ... this is if you're using asp.net - if clasic asp then yuo'll need to follow the post above...

            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