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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
6 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.
  • O Offline
    O Offline
    Omar Gameel Salem
    wrote on last edited by
    #1

    [Message Deleted]

    A M 2 Replies Last reply
    0
    • O Omar Gameel Salem

      [Message Deleted]

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Just show us the code for creating the textbox.

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net When you ask a question, remember to click "Good Answer", If the Answer is helps you.

      O 1 Reply Last reply
      0
      • O Omar Gameel Salem

        [Message Deleted]

        M Offline
        M Offline
        Muhammad Mazhar
        wrote on last edited by
        #3

        I am not sure but may be it helps you. When dynamically creating controls keep track of their client ids then when you need data entered in those controls upon post back search their parent control for those ids, cast object to text box and extract their value. This answer is specific to ASP.NET.

        Share your experience with others Check my Blog...

        O 1 Reply Last reply
        0
        • M Muhammad Mazhar

          I am not sure but may be it helps you. When dynamically creating controls keep track of their client ids then when you need data entered in those controls upon post back search their parent control for those ids, cast object to text box and extract their value. This answer is specific to ASP.NET.

          Share your experience with others Check my Blog...

          O Offline
          O Offline
          Omar Gameel Salem
          wrote on last edited by
          #4

          thanks for your solution Muhammad...but then i'll have to pass number of textboxes from javascript to C# and then access htmltextbox from C#...its a good solution..but bit tiresome

          D 1 Reply Last reply
          0
          • A Abhijit Jana

            Just show us the code for creating the textbox.

            cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net When you ask a question, remember to click "Good Answer", If the Answer is helps you.

            O Offline
            O Offline
            Omar Gameel Salem
            wrote on last edited by
            #5

            function addkeywordBox() { if (!document.getElementById || !document.createElement) return false; var keywordArea = document.getElementById ("keyword-area"); if (!keywordArea) return; var newLine = document.createElement ("br"); keywordArea.appendChild (newLine); var newkeywordBox = document.createElement ("input"); // Set up the new input for file uploads newkeywordBox.type = "text"; newkeywordBox.size = "60"; // The new box needs a name and an ID if (!addFileUploadBox.lastAssignedId) addFileUploadBox.lastAssignedId = 100; newkeywordBox.setAttribute ("id", "dynamic" + addkeywordBox.lastAssignedId); newkeywordBox.setAttribute ("name", "dynamic:" + addkeywordBox.lastAssignedId); keywordArea.appendChild (newkeywordBox); addkeywordBox.lastAssignedId++; }

            1 Reply Last reply
            0
            • O Omar Gameel Salem

              thanks for your solution Muhammad...but then i'll have to pass number of textboxes from javascript to C# and then access htmltextbox from C#...its a good solution..but bit tiresome

              D Offline
              D Offline
              DoctorMick
              wrote on last edited by
              #6

              As they are HTML controls and not server controls you won't be able to access them in the standard fashion but they <b>should</b> be available in the Request.Form collection.

              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