View Full Version : Text area from database
adityadubey
August 26th, 2005, 05:43 AM
hi! Is there a way I can add text from access database to a textarea in a form of an ASP page. I am able to do it on the textfield not textarea & option box. Any idea?
What I tried was :
<textarea name="placehere" cols="50" maxlength="1800" value="<%=rs.fields("Placethis")%>"></textarea>
But this doesn't work!
Aditya
hl
August 26th, 2005, 12:49 PM
<textarea name="placehere" cols="50" maxlength="1800"><%=rs.fields("Placethis")%></textarea>
adityadubey
August 31st, 2005, 03:39 AM
hi harish!
I tried, it still doesn't work :(
Aditya
iderek
August 31st, 2005, 01:30 PM
i don't know asp, but i know how htmlworks.
textfield is a self closing element (as in it doesn't have an open and close set of tags). textarea does have the pair of open/closing tags. instead of using the value attribute, you place your content between the tags -> <textarea>my content</textarea>. i do it all the time w/ php.
the only conclusion i can draw is there's got to be a typo/erro with the asp element. :/
hl
August 31st, 2005, 03:46 PM
exactly what i said iderek... read my post :P
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.