Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DropDownList VS TextBox

Reply
Thread Tools

DropDownList VS TextBox

 
 
deepak
Guest
Posts: n/a
 
      12-31-2005
i have dropdownlist(ddlist) and textbox(tbox) , i want that if a user types
sometihing in the textbox(tbox), the values present in the ddlist should
appear e.g.
my ddlist has 3 values (india,indonesia,germany), if user types in text box
like "i" then dropdown control should go to "india" and 'indonesia" (not
to germany) and if he types "n" the then it be on india,indonesia
and if he types "d" after "in" in text box then control should be on "india"
,indonesia" and if he types 4th letter say "i" then control shoudl select
2nd value which is "india",in this way the procseesing should be done..there
must be no postback, i know it can be done with the help of javsscript but
how..plz help me ,Thnaks in adavce to everyone who will try to do this

i post this question before but the soltuon given by somebody else is not
working

 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      01-01-2006
deepak wrote:
> i have dropdownlist(ddlist) and textbox(tbox) , i want that if a user
> types sometihing in the textbox(tbox), the values present in the
> ddlist should appear e.g.
> my ddlist has 3 values (india,indonesia,germany), if user types in
> text box like "i" then dropdown control should go to "india" and
> 'indonesia" (not
> to germany) and if he types "n" the then it be on india,indonesia
> and if he types "d" after "in" in text box then control should be on
> "india" ,indonesia" and if he types 4th letter say "i" then control
> shoudl select 2nd value which is "india",in this way the procseesing
> should be done..there must be no postback, i know it can be done
> with the help of javsscript but how..plz help me ,Thnaks in adavce
> to everyone who will try to do this
>
> i post this question before but the soltuon given by somebody else is
> not working


What you want is a so-called combobox. In plain HTML, this does not exist,
but there are ASP.NET controls available, even for free.

Do a search for "free ASP.NET combobox control", or look here for
an example:
http://www.codeproject.com/aspnet/as...tecombobox.asp

--

Riki


 
Reply With Quote
 
 
 
 
deepak
Guest
Posts: n/a
 
      01-02-2006
Hi Riki , i open this link which u gave me but my funcitonly is thia one
which i m explaning now , i think this does not mathc in that link which u
gave.. plz see this now:->
-----GUI is like the following ------------
TextBox1(placed above listbox named ListBox1)

ListBox1(placed below TextBox named TextBox1)
-------------------------------------------
TextBox1:
The user can enter the letter(s) that match the country name(say
india,indonesia). On entering letter(s) the list box view will change to show
the country(s) that match the entered characters.
ListBox1:
The country list are pre-populated in the list box. The user can either
scroll down the list box and select the country(s) or enter the country name
in the text box provided

Hope now u have better picture...plz send me a complete code with tested
already so that i could proceed further . Already my 3 days are wasted in
this.i will be thankful to any other person also who will test and send it .


"Riki" wrote:

> deepak wrote:
> > i have dropdownlist(ddlist) and textbox(tbox) , i want that if a user
> > types sometihing in the textbox(tbox), the values present in the
> > ddlist should appear e.g.
> > my ddlist has 3 values (india,indonesia,germany), if user types in
> > text box like "i" then dropdown control should go to "india" and
> > 'indonesia" (not
> > to germany) and if he types "n" the then it be on india,indonesia
> > and if he types "d" after "in" in text box then control should be on
> > "india" ,indonesia" and if he types 4th letter say "i" then control
> > shoudl select 2nd value which is "india",in this way the procseesing
> > should be done..there must be no postback, i know it can be done
> > with the help of javsscript but how..plz help me ,Thnaks in adavce
> > to everyone who will try to do this
> >
> > i post this question before but the soltuon given by somebody else is
> > not working

>
> What you want is a so-called combobox. In plain HTML, this does not exist,
> but there are ASP.NET controls available, even for free.
>
> Do a search for "free ASP.NET combobox control", or look here for
> an example:
> http://www.codeproject.com/aspnet/as...tecombobox.asp
>
> --
>
> Riki
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich TextBox / HTML TextBox Jay ASP .Net 5 04-28-2005 11:15 PM
Calendar popup - using ASP textbox instead of HTML textbox =?Utf-8?B?Q2hyaXM=?= ASP .Net 3 03-30-2005 06:02 PM
runat="server"....a simple html textbox or a webform server textbox...that is the question. Hazzard ASP .Net 2 07-23-2003 07:32 AM
Re: runat="server"....a simple html textbox or a webform server textbox...that is the question. Natty Gur ASP .Net 0 07-22-2003 03:57 AM
Re: VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail??? S. Justin Gengo ASP .Net 0 07-16-2003 06:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57