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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to File 1

Status
Not open for further replies.

Reynet01

Technical User
Apr 27, 2004
59
US
I have a response.write statement on my page that writes out a license code string which looks like this

[RTAuth]
XXXXXXX=RTVoiceLines=0120-XXXXXXXXXX

Here is the code
<%response.Write"[RTAuth]"+"<BR>"+((Recordset1.Fields.Item("LicenseCode").Value)+"=RTVoiceLines="+(Recordset1.Fields.Item("Ports").Value)+"-"+(Recordset1.Fields.Item("actcode").Value))%>

I would like to know if their is way to export this license string to a file where the user can click a link and download the license file the name of the file would be vblicense.ini "it is nothing but a text file with the license string in it" Thanks for any help

If knowledge were power I would be a AAA battery!
 
no problem...glad to be of help...if you think my posts helped you then dont forget to put a small purple star for me...
here is how you need to change code to put carriage return...let me know if it works for you...
Code:
<%
filename="vblicense.ini"
response.contenttype="text/plain"

Response.AddHeader "content-disposition", "attachment; filename=""" & fileName & """"
dim myvar
myvar=request.querystring("mylicensestring")
myvar=replace(myvar,"<BR>",vbCrLf)
response.write myvar
%>

finally after 3 hrs of struggle,i guess we are done with this...congrats...

-DNG
 
I can never thank you enough for taking this much time and effort with helping me out.

YOU ROCK!

Thanks Again

If knowledge were power I would be a AAA battery!
 

Reynet01

After all the effort DNG has put in to help you, I think he deserves a star.. below any of his posts click "Thank DotNetGnat for this valuable post!"

It's always nice (and appreciated) to say thanks in this way.


A smile is worth a thousand kind words. So smile, it's easy! :)
 
Sorry I thought I had done that but I must not have hit the confirm link to activate it. Thanks Again DotNetGnat

If knowledge were power I would be a AAA battery!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top