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. dropdown to display the information vb.net(ASP.NET)

dropdown to display the information vb.net(ASP.NET)

Scheduled Pinned Locked Moved Web Development
csharpasp-nethelp
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.
  • O Offline
    O Offline
    Oga M
    wrote on last edited by
    #1

    PLEASE HELP ME WITH THIS PROBLEMs 1.Dropdown to display the names,when I select the name inside the dropdown automatically display the email address of that person inside the txetbox next to the drop down. 2.When I douple click the name inside the dropdown,the name to be display inside the listbox,and the user must have an access to delete them.

    M 1 Reply Last reply
    0
    • O Oga M

      PLEASE HELP ME WITH THIS PROBLEMs 1.Dropdown to display the names,when I select the name inside the dropdown automatically display the email address of that person inside the txetbox next to the drop down. 2.When I douple click the name inside the dropdown,the name to be display inside the listbox,and the user must have an access to delete them.

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Oga M wrote:

      1.Dropdown to display the names,when I select the name inside the dropdown automatically display the email address of that person inside the txetbox next to the drop down.

      As I replied here, In form_load event, SqlConnection dbConn = new SqlConnection(connectionString); dbConn.Open(); SqlDataAdapter da = new SqlDataAdapter("SELECT names,email FROM table1", dbConn); DataSet ds = new DataSet(); da.Fill(ds); dbConn.Close(); DropDownList1.DataSource = ds.Tables[0]; DropDownList1.DataTextField = "names"; DropDownList1.DataValueField = "email"; DropDownList1.DataBind(); protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { txtEMail.Text = DropDownList1.SelectedValue; }

      Oga M wrote:

      2.When I douple click the name inside the dropdown,the name to be display inside the listbox,and the user must have an access to delete them.

      I think it's very strange requirement...

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      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