p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   Value not being populated in Text Box (http://p2p.wrox.com/showthread.php?t=11979)

ashu_gupta75 April 19th, 2004 01:59 AM

Value not being populated in Text Box

My ASP Page has a combo box from which i want to display the selected TEXT, just below in a text box.
I am unable to do so.

If the user selects 'North Block' in combo, then this value is getting stored in a recordset. From here i am populating the text box. However, in the textbox, I see only 'North' and not 'North Block'.

What should i do?


rodmcleay April 19th, 2004 03:06 AM

Are you enclosing the values for the textbox in quotes.
value='<%= variableName%>' or value="<%= variableName%>"
because when you put
value=<%= variableName%>
with no quotes the space is treated as the end of the value and the browser thinks the next part, Block, is an attribute of some kind.
If this is not the case, can you confirm that the full value is stored in the Database.
Failing that please provide some more code examples.

They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.

ashu_gupta75 April 19th, 2004 11:21 PM

Thanks for the sol!

All times are GMT -4. The time now is 11:45 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.