Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

generate a text page from asp

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I have a page that retrieves a recordset in a table format. The user wants me to create a text page instead so they can save the page as a text file and import the records into access or whatever. How can I have a new page, as plain text as possible appear in the browser when the user clicks his request button?

thanks for any suggestions...

 
Just put plain text in the ASP without the HTML tags. ASP spits out whatever you tell it to. Note: Most browsers will open and view plain text files so they will still need to right-click and Save Target As. Wushutwist
 
how can I get the records to spit out line by line.. if I use <p> between records I still get the html code and big spaces between records..

thanks

 
Use the Line Break in VB, I believe it is vbCrLf.
Example:
Code:
Response.Write(&quot;Record One&quot; + vbCrLf)
Response.Write(&quot;Record Two&quot; + vbCrLf)
Should display:
Code:
Record One
Record Two
Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top