
February 24th, 2000, 01:58 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Chris Snider (csnider@worldnet.att.net)</b></i><br />All you need to do is output the database field as the value of the form field.<br /><input type="text" value="<%= rsRecordset.fields("MyFieldName").Value%>"><br /><br />For options in a select tag you would need to repeat the data twice, once for the value="" and once for the "viewable part"<br /><br />use the convention above for a low traffic site as switching context can cause a drain on the server resources for large sites<br /><br />For high traffic sites, out the form generation into a function/sub and call it. Then use the resposne.write "My form field stuff" with the database values integrated<br />Response.Write "<input type=""text"" value=""" & rsRecordset.fields("MyFieldName").Value & "">"<br /><br /><br />------------<br />Glenn at 2/15/2000 3:06:20 AM<br /><br />I am looking for a robust way to populate a html/asp form without using client side code.<br /><br />Specifically, I want to populate a html form's fileds with data from an asp...<br /><br />I know we can generate the form on the fly but it does not allow for forms that have fields next to each other and formatted in other than one field after the other...<br /><br />I have used visual interdev and DTC controls with success but this requires client sided scripting and exposing data elements..asp of course hides the implemntation but I have not found an acceptable solution.<br /><br />Any suggestions would be appreciated..<br />
|