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. General Programming
  3. Visual Basic
  4. Populate data in text box

Populate data in text box

Scheduled Pinned Locked Moved Visual Basic
helpquestion
3 Posts 2 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.
  • I Offline
    I Offline
    Its due when
    wrote on last edited by
    #1

    Hi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks

    D 1 Reply Last reply
    0
    • I Its due when

      Hi all, Im having a bit of trouble displaying data from a field into a textbox. I should mention that this is a web application that is doing a select statement and then populating the data into a textbox. The problem is that one of the fields has spaces in it. If i try to display the data into a text box using this code: My Label Only the first word of the sentence is coming up. Is there a reason for this and a way around it? Any help would be greatly appreciated. Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Your question really belongs in the ASP.NET Forum since it really has nothing to do with VB/VB.NET. Only the first word is showing up because once objRS() is evaluated, the HTML becomes:

      <input TYPE=text NAME=txtield_nameF SIZE=50 VALUE=Whatever objRS returned here>

      You might want to type enclosing the objRS() code in quotes:

      <input TYPE=text NAME=txtield_nameF SIZE=50 VALUE="Whatever objRS returned here">

      But, then again, I'm no expert in ASP... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      I 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Your question really belongs in the ASP.NET Forum since it really has nothing to do with VB/VB.NET. Only the first word is showing up because once objRS() is evaluated, the HTML becomes:

        <input TYPE=text NAME=txtield_nameF SIZE=50 VALUE=Whatever objRS returned here>

        You might want to type enclosing the objRS() code in quotes:

        <input TYPE=text NAME=txtield_nameF SIZE=50 VALUE="Whatever objRS returned here">

        But, then again, I'm no expert in ASP... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        I Offline
        I Offline
        Its due when
        wrote on last edited by
        #3

        Dave, Sorry about posting it in the wrong forum. Just goes to show what 2.00am will do to you :) Anyway your spot on just needed to enclose the objRS and it worked like a treat. Again appreciate the help :) Nic

        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