Urgent Help on finding a word in asp:DropDownList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I have a problem here. Suppose I have a asp:DropDownList in my aspx page as below :-

<asp:DropDownList id="Dropdownlist1" Runat="server"><asp:ListItem>apple</asp:ListItem><asp:ListItem>mike</asp:ListItem><asp:ListItem>michael</asp:ListItem><asp:ListItem>racheal</asp:ListItem><asp:ListItem>rose</asp:ListItem></asp:DropDownList>

When the page is load, I want to find a name in the dropdownlist, for example if I type 'r' it will point to 'racheal' first and if I continue to type 'a' it will point back to 'apple'.

What if I want the dropdownlist to continue find the word 'ra' key-in by user and point it to the value which starts with 'ra' in the dropdownlist ?

Please reply as soon as possible.

Thanks alot.


Cheers,
Mae
 
Hi, Mae

This is the behavior of the HTML element <select> in IE. No public standards
apply to this particular
behavior AFAIK. It is feature of the browser and may vary from browser to
browser.

Greetings
Martin
mae said:
Dear all,

I have a problem here. Suppose I have a asp:DropDownList in my aspx page as below :-

<asp:DropDownList id="Dropdownlist1"
Runat="server"><asp:ListItem>apple</asp:ListItem><asp:ListItem>mike</asp:Lis
tItem> said:
When the page is load, I want to find a name in the dropdownlist, for
example if I type 'r' it will point to 'racheal' first and if I continue to
type 'a' it will point back to 'apple'.
What if I want the dropdownlist to continue find the word 'ra' key-in by
user and point it to the value which starts with 'ra' in the dropdownlist ?
 
Back
Top