Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 19th, 2004, 01:59 AM
Authorized User
Join Date: Jan 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Old April 19th, 2004, 03:06 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts

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.
Old April 19th, 2004, 11:21 PM
Authorized User
Join Date: Jan 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for the sol!

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a form with input text that is populated shawn.bordeaux Classic ASP Basics 0 November 10th, 2008 11:22 PM
Grab Values From List Box into Text Box phungleon VB How-To 2 June 19th, 2008 10:33 PM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Combo Box Populated off Database Firehawk2006 Visual Basic 2005 Basics 1 November 28th, 2005 01:47 PM
Search using drop down list box and a text box tcasp Classic ASP Basics 1 July 31st, 2003 02:58 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.