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