Solved

Fill text box with data using ASP

Posted on 1998-10-27
2
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
QQ problem 22 69
MediaWiki - Move a site 4 33
SP result not being displayed 5 44
Images showing on the internet -- asp.net -- VB.net.  Why some do and some don’t. 3 26
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

726 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