Solved

Fill text box with data using ASP

Posted on 1998-10-27
2
178 Views
Last Modified: 2013-12-25
How can I do this? I am trying to update an ASP. I need to have the data come up in the text box and then let the user update it and then submit it back to the database.  Please Help!

Thanks,

Dorothy
0
Comment
Question by:pizzuti
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
ID: 1855958
<%
ID = Request("entiteit_id")
If ID <> "new" Then
  Set RS = Server.CreateObject("ADODB.Recordset")
  strSQL = "SELECT * "
  strSQL = strSQL & "FROM table "
  strSQL = strSQL & "WHERE ID = " & ID
  RS.Open strSQL, Conn, 1, 1
  strMyData = RS("MyDataField")
  RS.Close
End If
%>

<form action="Action.asp" METHOD="POST">
<input type="hidden" name="ID" value="<%=ID%>">

<TEXTAREA rows=20 cols=75 name="MyData" wrap="physical">
<%=strMyData%>
</TEXTAREA>


<input type="submit" name="Action" value="submit">
</form>

0
 

Author Comment

by:pizzuti
ID: 1855959
Thanks but I forgot to menton the most important part - I need to let them scroll through the database records in the text box.
If you can help great if not thanks for your help so far....

Dorothy
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now