Print Page | Close Window

Display data from table to textfield

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8153
Printed Date: 30 March 2026 at 12:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Display data from table to textfield
Posted By: smahadevan
Subject: Display data from table to textfield
Date Posted: 17 December 2003 at 1:34am

Hi everyone,

I have created a simple table which have some data in it through MS Access.Table Name: Personal(ID, Answer1, Answer2)

Now i have created a page with textfields. When i click the ":Display Data" button in the page, it should be able to display the data from the table to the textfield1 and textfield2.

textfield1 is for Answer1, textfield2 is for Answer2

 Could anyone please show me how to do that using ASP? Thanks in advance.

Regards,

Mahadevan




Replies:
Posted By: michael
Date Posted: 17 December 2003 at 7:38am
Did you check the tutorials on this site? They explain how to retrieve data from an access database using asp.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: aalavar
Date Posted: 17 December 2003 at 7:49am

If you are trying to display the data to a textbox you can use something like this:

<input type="text" name="tf1" size="50" maxlength="50" value="<%Response.write tf1%>">

Now you just need to get the data from the database to the variable.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net