Pass data from asp

  • Thread starter Praetorian Guard
  • Start date
P

Praetorian Guard

Hello,

I have a form with a textarea and a submit button and that button will call
an asp file and this file will query the database. My question is how do I
pass the data to the html form so that it will be displayed in the textarea?

Thank you in advance.
 
R

Ray Costanzo [MVP]

You get the contents of the text area using
Request.Form("nameOfYourTextArea")

If you have data to display in a text area, you'd do:

<textarea
name="something"><%=Server.HTMLEncode(sYourVariableWithData)%></textarea>

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,891
Members
47,423
Latest member
henerygril

Latest Threads

Top