Wrox Home  
Search P2P Archive for: Go

  Return to Index  

interdev_programming thread: problem with text boxes


Message #1 by "Sunil Ferrao" <ltsbbank@e...> on Sat, 23 Jun 2001 11:36:58
Assuming your ado recordset is named "rst" and the field you are wanting 
to render in the textbox is "FieldName", then the following should work...

<input type="text" name="txtTest" value="<%=rst("FieldName")%>">

The double quote around each attribute of the input tag isn't required, 
but it is important if the value from the database has spaces in the 
string. Without quotes, the browser often renders only the first word in 
the string.

-jim m.


> I am accessing the data from a ADO recordset and have not problems on 
that 
> front however when i try to pass this data into  text box so that it can 
> be edited and updated then only the word in the string is displayed in 
the 
> text box if I try passing the value of the record set to a variable and 
> then try response write it works fine. What is the problem with the text 
> boxes?

  Return to Index