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. Drop Down list

Drop Down list

Scheduled Pinned Locked Moved ASP.NET
4 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.
  • S Offline
    S Offline
    seemamltn
    wrote on last edited by
    #1

    I have a dropdown list. It has following items admin@sam.ca.gov Admin Miller bobby@sam.ca.gov Bobby Gill chris@sam.ca.gov chris Ghai jim@sam.ca.gov Jim Ghotra Here each item represent email address and his first name and last name. I need to select an item from drop down list and grab only email ID when I click on a button. The domain of email is always same. i.e @sam.ca.gov is always same for all users. Thanks in advance

    seema

    A 1 Reply Last reply
    0
    • S seemamltn

      I have a dropdown list. It has following items admin@sam.ca.gov Admin Miller bobby@sam.ca.gov Bobby Gill chris@sam.ca.gov chris Ghai jim@sam.ca.gov Jim Ghotra Here each item represent email address and his first name and last name. I need to select an item from drop down list and grab only email ID when I click on a button. The domain of email is always same. i.e @sam.ca.gov is always same for all users. Thanks in advance

      seema

      A Offline
      A Offline
      A Vishal
      wrote on last edited by
      #2

      you can use a new string to copy the dropdown list item value/text and then u can use string operations to get the email id use the empty space as the escape sequence to get the string(i.e. email id)

      entry level s/w professional

      S 1 Reply Last reply
      0
      • A A Vishal

        you can use a new string to copy the dropdown list item value/text and then u can use string operations to get the email id use the empty space as the escape sequence to get the string(i.e. email id)

        entry level s/w professional

        S Offline
        S Offline
        seemamltn
        wrote on last edited by
        #3

        could you please send me the code

        seema

        N 1 Reply Last reply
        0
        • S seemamltn

          could you please send me the code

          seema

          N Offline
          N Offline
          N a r e s h P a t e l
          wrote on last edited by
          #4

          Hi you can set value property of the dropdownlist to the first name or last name whatever you want. like dropdownlist1.Text="admin@sam.ca.gov Admin Miller"; dropdownlist1.Value="Admin Miller";

          Naresh Patel

          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