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. To get the value into the textbox when when particular item is selected in dropdown list

To get the value into the textbox when when particular item is selected in dropdown list

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
2 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.
  • A Offline
    A Offline
    Anjani Poornima
    wrote on last edited by
    #1

    Hello, I am having a table in my databse with columns ACCOUNT_CODE NARRATION i filled dropdown list with account code values from the database. now my question is: when i select the p[articular item in the dropdown list, the narration textbox must be filled from the database based on the selected item. Plz,help me.... Thanks in advance :)

    B 1 Reply Last reply
    0
    • A Anjani Poornima

      Hello, I am having a table in my databse with columns ACCOUNT_CODE NARRATION i filled dropdown list with account code values from the database. now my question is: when i select the p[articular item in the dropdown list, the narration textbox must be filled from the database based on the selected item. Plz,help me.... Thanks in advance :)

      B Offline
      B Offline
      Baran M
      wrote on last edited by
      #2

      Did you struck somewhere ? You said you have added values from the database to dropdownlist. In DropDownList1_SelectedIndexChanged event, you can write code for creating textbox dynamically, bind it with database value and add it to the form. Dim txt As New TextBox() txt.Text = "Sample value from the database" Me.form1.Controls.Add(txt) Make the controls AutoPostBack property as "True".

      Education is not a way to escape poverty — it is a way of fighting it.

      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