Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: COMBO BOX ERROR !!


Message #1 by "Monty" <montylove@h...> on Wed, 11 Dec 2002 20:04:26 +0530
i have a combo box which is getting values form recordset
when the user select one value and clicks next
that value got deleted ,, so far everthing is fine

but the problem is ...... if the text in drop down box contains spaces then
.... the only the text before first space goes to the next page

the dropdown box is in form
so when i submit the data ... only the text till first space gets submitted

for example .... if it contains .. hello  sir ....
then only " hello "  will go and not the complete word

ANy suggesstions ?




Message #2 by "Peter Foti (PeterF)" <PeterF@S...> on Wed, 11 Dec 2002 13:32:14 -0500
Sounds like the value attribute of the <OPTION> does not have quotes around
it.  Make sure you surround the value with quotes.

WRONG:
<option value=<% ... %> >

RIGHT:
<option value="<% ... %>" >

Hope this helps.
Peter



-----Original Message-----
From: Monty [mailto:montylove@h...]
Sent: Wednesday, December 11, 2002 9:34 AM
To: ASP Databases
Subject: [asp_databases] COMBO BOX ERROR !!


i have a combo box which is getting values form recordset
when the user select one value and clicks next
that value got deleted ,, so far everthing is fine

but the problem is ...... if the text in drop down box contains 
spaces then
.... the only the text before first space goes to the next page

the dropdown box is in form
so when i submit the data ... only the text till first space 
gets submitted

for example .... if it contains .. hello  sir ....
then only " hello "  will go and not the complete word

ANy suggesstions ?





Message #3 by "Krishnavardhan" <krishna.vardhan@e...> on Fri, 13 Dec 2002 13:04:45
> i have a combo box which is getting values form recordset
when the user select one value and clicks next
that value got deleted ,, so far everthing is fine

but the problem is ...... if the text in drop down box contains spaces then
.... the only the text before first space goes to the next page

the dropdown box is in form
so when i submit the data ... only the text till first space gets submitted

for example .... if it contains .. hello  sir ....
then only " hello "  will go and not the complete word

ANy suggesstions ?




Message #4 by "Drew, Ron" <RDrew@B...> on Fri, 13 Dec 2002 08:09:33 -0500
Why not use a replace ...
sText =3D Replace(sText, " ", "&nbsp;")

-----Original Message-----
From: Krishnavardhan [mailto:krishna.vardhan@e...]
Sent: Friday, December 13, 2002 8:05 AM
To: ASP Databases
Subject: [asp_databases] Re: COMBO BOX ERROR !!


> i have a combo box which is getting values form recordset
when the user select one value and clicks next
that value got deleted ,, so far everthing is fine

but the problem is ...... if the text in drop down box contains spaces
then .... the only the text before first space goes to the next page

the dropdown box is in form
so when i submit the data ... only the text till first space gets
submitted

for example .... if it contains .. hello  sir ....
then only " hello "  will go and not the complete word

ANy suggesstions ?





  Return to Index