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 to retrieve a value in [TEXTAREA] in an aspx page?

How to retrieve a value in [TEXTAREA] in an aspx page?

Scheduled Pinned Locked Moved Web Development
tutorialcsharphtmlsysadminhelp
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.
  • Z Offline
    Z Offline
    zoltix
    wrote on last edited by
    #1

    Hi, How to retrieve a value in [TEXTAREA] in an aspx page? Normally it is easy, drag and drops the textarea in aspx page and it is work. But in this case, I generate the html code manually () and put as literal html in the aspx page. How to do for retrieving the value in my textarea without define a variable (runnat server) in c# code? I thought this code retrieve all controls and value in all tag inside the Form tag, it is not the case. for(int i=0; i"); Response.Write(Request.Form.Get(i)+ "
    "); Response.Write(Request.Form.GetKey(i)+ "
    "); } Example: html

    TEXTAREAcoucou TEXTAREAcoucou

    Could you help me? Bye bye -=zoltx=-

    J A 2 Replies Last reply
    0
    • Z zoltix

      Hi, How to retrieve a value in [TEXTAREA] in an aspx page? Normally it is easy, drag and drops the textarea in aspx page and it is work. But in this case, I generate the html code manually () and put as literal html in the aspx page. How to do for retrieving the value in my textarea without define a variable (runnat server) in c# code? I thought this code retrieve all controls and value in all tag inside the Form tag, it is not the case. for(int i=0; i"); Response.Write(Request.Form.Get(i)+ "
      "); Response.Write(Request.Form.GetKey(i)+ "
      "); } Example: html

      TEXTAREAcoucou TEXTAREAcoucou

      Could you help me? Bye bye -=zoltx=-

      J Offline
      J Offline
      Juno EasyDotNet com
      wrote on last edited by
      #2

      Hi, Does not Request["TEXTAREAcoucou"] work? Juno MCSD.NET, MCDBA, MCSE ---------------------------------------------------------- Support Team of EasyDotNet, INC. http://www.EasyDotNet.com DataForm.NET - The most powerful data entry web server control for ASP.NET

      1 Reply Last reply
      0
      • Z zoltix

        Hi, How to retrieve a value in [TEXTAREA] in an aspx page? Normally it is easy, drag and drops the textarea in aspx page and it is work. But in this case, I generate the html code manually () and put as literal html in the aspx page. How to do for retrieving the value in my textarea without define a variable (runnat server) in c# code? I thought this code retrieve all controls and value in all tag inside the Form tag, it is not the case. for(int i=0; i"); Response.Write(Request.Form.Get(i)+ "
        "); Response.Write(Request.Form.GetKey(i)+ "
        "); } Example: html

        TEXTAREAcoucou TEXTAREAcoucou

        Could you help me? Bye bye -=zoltx=-

        A Offline
        A Offline
        Andrew Quinn AUS
        wrote on last edited by
        #3

        Hi, You are missing the name attribute, e.g. <textarea id="TEXTAREAcoucou" name="TEXTAREAcoucou".... When you post a form off to the server, it is the name attribute that forms the key/value pair that you can access through Request.Form["TEXTAREAcoucou"].ToString() Hope this helps, Andy

        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