PDA

Click to See Complete Forum and Search --> : Please help, release date 5:00 tonight!!!!!


Dec 20th, 2000, 04:50 AM
Noddy problem - I'm getting data back from a VB object to an ASP. The data is along the lines of 'Midland Bank'.

When I attempt to populate a text box with this information (ie, if my ASP variable is called 'strBankName', I set the textbox value=<%=strBankName%>) but I only get 'Midland'. It seems to be truncating at the first space.

What the hell is going on?

Please help, release date 5:00 tonight!!!!!

Ianpbaker
Dec 20th, 2000, 05:09 AM
Hi jim

use the following

<INPUT type="text name="mytext" value="<%=strBankName%>">

you need the speach marks if the value is more than one word

hope this helps

Ian

Dec 20th, 2000, 05:19 AM
Hot damn - that worked a treat.

Thanks for that matey - it looks like we'll make 5:00 after all!

Ianpbaker
Dec 20th, 2000, 05:22 AM
no worries. A good bit of advice is to put any element value in a tag, withing speach marks