Greetings- <br><br>I have a site that is kind of a portal site- many sites within a single site. Users of the site must use a single logon page that redirects the user to a predetermined "subsite".
Each "subsite" has a few different session variables that are used in varying ways to display information germaine to that user. <br><br>My customer (the portal owner) wants users to be able to render any page on the site to a .PDF that is then sent via email to the user.
I can render an HTML file to PDF via a .COM object, but the problem is that I cannot figure out how to render the .ASP page to HTML. My initial thought was to use MSXMLHTTP to GET the page, but when I do this, the GET method always returns the logon page.
<br><br>What I'd like to do is have a link to a processor page that just "captures" the HTML as it's sent to the browser and writes it to a static HTML file, which I can then easily turn into a PDF. Anyone have any ideas?
Client said "Yea, our current host does PHP and all that" and of course they don't. I know PHP, so hopefully it is somewhat similar to ASP. Anyway...I want to know how to take information from an HTML form and write the info to a text file. It is going to be *very* basic as I only need to write one line to the text file.
It is just so the client can type in the monthly loan rate, or something like that, and save that info to a text file. Then, show the text file on all the pages.
I am working on a safetywear deduction system and i need to perform the following functions: write to a text file and read from a test file and wrute to a table in the database. I need code to write and read to a text file in asp please.
Field type is varchar and some data is unicode like this "•õ" It is a chinese. How do I transfer the data I retrive from DB and then I can write it into an text file with its proper chinese word using FileSystemObject. Or any other way ?
I have an asp page that writes to a text file. Can someone tell me what the correct permissions should be on the network - so it's safe from various users coming in to manipulate any files?
I have a form mail script that sends an email and then writes to a text file using Server.CreateObject("Scripting.FileSystemObject").
The problem I am having is that the information needs to be saved in a Password Protected Directory. When I try to save the info it gives me a permission denied error.
I had my hosting company change the permission on the directory and the script was working ok but now it isn't.
Is there a way to pass the username and password in the script so I don't have to worry about the hosting company messing this up?
I have a text file that has two lines in it, the first line gives item labels, my second line gives values for those labels. I would like to use ASP to present this data on a web page. I also want the page to reload every 10 seconds so that any updates to the text file would be relfected on the web page.
I have a client that wants to allow users to signup for a contest using text messaging. I have no idea where to start with this, so hoping someone here has some experience with this.
I am trying to find a way to save/copy ASP/HTML generated tables on a webpage as images. In other words, I want users to right click on a table and save it just like the way they would save an image.
Is there any way of programming this behavior without having the user ro download any software like ActiveX?
I cannot find any information on how to insert an image into a block of text and have the text wrap around the image. All if the text and graphics in the client's site are being pulled from the database using response.write. When I write straight HTML, it is easy to place an image into a block of text and align the image right or left, having the text wrap around the image.
I want to write few lines to one file called log.txt. This log.txt is located in one directory called log.dir This log.dir is located in webroot (mysite.com/log.dir/) I protected this directory using password protection from my hoting control panel. So if I want to see log.txt file using browser, I have to enter username and password. It works fine.
I have a asp file in webroot called my.asp This file writes some text in log.txt file. I tested this using firefox browser. All worked fine. You may wonder, where is the problem then? The problem is Internet Explorer. When I tested my.asp file using IE, it asks for username and password to proceed further. I want to avoid this.
How can I write to a file located in password protected directory that will work with IE? I know it look stupid. ASP work on server side so it should work with IE if it works with FireFox. But trust me, it's not working .
Im getting a error when trying to write to a txt file.Its so annoying i got it working on my test server and then moved it to another server and it gives this error i think it could be perrmisions but ive gave the folder read write permisions.
Using the HttpRequest object to gather material (potentially from an external server), is it possible to write the response stream into which ever file type is required e.g. I request not just text, but an image - is is possible to write the image to file? Or is this just not possible? I can only find reference to create a text file.
I'm having trouble translating a script that I wrote in php to asp. Well a line any how.
$fp = fopen("/mydomain/logs/mail.log", "a+") or die("Could Not Write Form Data To File.");
fputs ($fp, $info_from_form);
fclose($fp);
basically, the above line does is:- opens the file mail.log and writes to the content of that file. the "a+" means that if the file is not there then it will create "mail.log" and write to it.
The process was included in a form to email php script.
When I run an asp script, I can view the contents on the screen in pdf format. But instead of displaying the information to the screen, I want to be able to save the same information into a binary file with a pdf extension. Does anybody know how to do that?
I have listed the coded that writes it to the screen, but now want to be able to write the information into a file ....
how can a make a select to a database and then stored the results into an excel datasshet using vbscript. I already know how to connect to the database and make the query.
if it's possible to save a file down to someone's C drive from an ASP page. I've left him fiddling around with the FileSystem object and TexStream object, but I don't fancy his chances.
I'm guessing this may not be possible, as people may not be overly happy with the concept of web pages writing files to their machines, but I thought I'd ask. And it's on an intranet if that helps.
I have written to text files in the past, but always appending new data to the end of the text file. I now want to add the new data to the beginning of the file. The text file would be a record of orders placed through a web form. The text file would merely be a record of the orders but it needs to be in descending date order - each new record added to the beginning.
I have one EXE file that customer need to download from my website. But I have one text file of Max 250 bytes of text in in that I want to append to the END of the Binary EXE file and give that for download to user. How can I do that. Please suggest. I think we need to go for some BinaryWrite kind of procedure using ADO Stream.
response.write("<a href=""editprofile.asp"" class=""default"">Edit Profile</a> / <a href=""viewprofile.asp"" class=""default"">View Profile</a> / <a href=""mymessages.asp"" class=""default"">My Messages</a>") how do i put: <!--#include file="noofmessages.asp" --> at the end of my code in the last link My Messages?