Hi Everyone,
THIS IS SECOND TIME I AM POSTING MY PROBLEM.I have a log file like
123.log and i want to display this log in
browser.In ASP page at top i have following.
<%Response.Buffer = true;%>
<%Response.Expires = -1%>
Inside page i have
contentType = "text/plain";
Response.AddHeader("Content-Disposition","filename=" & sPath);
Response.AddHeader("pragma","no-cache")
Response.AddHeader ("cache-control","private")
Response.CacheControl = "no-cache" ------> I think this line is
main.
Response.ContentType = contentType
Response.Clear()
Response.BinaryWrite(File); --> File is return from COM in Binary
mode.
Response.Flush
I can have one log per job or multiple logs per job.
E.g 123.log
or
123.log
123.esplog
123.soplog etc
When i click Button View Logs i check if one log open it using code
above or if
multiple log then response.redirect to other page where it list all
logs like
123.log
123.esplog
123.soplog etc
and user click on log and behavior is same as single log(means same
code above).
PROBLEMS WHICH I AM FACING ARE BELOW.
1.WHEN SINGLE LOG LIKE 123.LOG OPEN FINE (NO PROBLEM) BUT IF MULTIPLA
LOG AND CLIECK ON 123.LOG I AM GETTING ERROR SAYING
INTERNET EXPLORER CANNOT DOWNLOAD FILE 123.LOG.
INTERNET EXPLORER WAS NOT ABLE TO OPEN THIS INTERNET SITE.THE
REQUESTED SITE
IS EITHER UNAVAILABLE ORCANNOT BE FOUND.PLEASE TRY AGAIN.
BUT IF I RENAME OTHE FILE LIKE 123_BKP1.ESPLOG AND 123_BKP2.SOPLOG
(BECAUSE BASED ON NAME PROGRAM DETECT IF MULTIPLE LOG OR SINGLE LOG)
IT WILL BE SINGLE LOG CASE AND I OPEN IT .WHY?
2. I CAN OPEN 123.ESPLOG BUT NOT 123.SOPLOG.BOTH FILES ARE SAME ONLY
WITH DIFFERENT EXTENSION.WHY?
CAN NAYONE PLEASE.....TELL ME HOW CAN I FIX THIS .THIS IS VERY URGENT
ISSUE FOR ME.ANY HELP IS MUCH MUCH APPRICATE.
THANKS,
GILL 3 1454
Sound like you have an issue with the logic that is selecting File and
returning the binary - have you checked that it's finding the correct file?
NB: Don't post in uppercase - it's hard to read and tantamount to shouting.
Chris.
"pargat singh" <pa******@yahoo.com> wrote in message
news:59**************************@posting.google.c om...
Hi Everyone,
THIS IS SECOND TIME I AM POSTING MY PROBLEM.I have a log file like
123.log and i want to display this log in
browser.In ASP page at top i have following.
<%Response.Buffer = true;%>
<%Response.Expires = -1%>
Inside page i have
contentType = "text/plain";
Response.AddHeader("Content-Disposition","filename=" & sPath);
Response.AddHeader("pragma","no-cache")
Response.AddHeader ("cache-control","private")
Response.CacheControl = "no-cache" ------> I think this line is
main.
Response.ContentType = contentType
Response.Clear()
Response.BinaryWrite(File); --> File is return from COM in Binary
mode.
Response.Flush
I can have one log per job or multiple logs per job.
E.g 123.log
or
123.log
123.esplog
123.soplog etc
When i click Button View Logs i check if one log open it using code
above or if
multiple log then response.redirect to other page where it list all
logs like
123.log
123.esplog
123.soplog etc
and user click on log and behavior is same as single log(means same
code above).
PROBLEMS WHICH I AM FACING ARE BELOW.
1.WHEN SINGLE LOG LIKE 123.LOG OPEN FINE (NO PROBLEM) BUT IF MULTIPLA
LOG AND CLIECK ON 123.LOG I AM GETTING ERROR SAYING
INTERNET EXPLORER CANNOT DOWNLOAD FILE 123.LOG.
INTERNET EXPLORER WAS NOT ABLE TO OPEN THIS INTERNET SITE.THE
REQUESTED SITE
IS EITHER UNAVAILABLE ORCANNOT BE FOUND.PLEASE TRY AGAIN.
BUT IF I RENAME OTHE FILE LIKE 123_BKP1.ESPLOG AND 123_BKP2.SOPLOG
(BECAUSE BASED ON NAME PROGRAM DETECT IF MULTIPLE LOG OR SINGLE LOG)
IT WILL BE SINGLE LOG CASE AND I OPEN IT .WHY?
2. I CAN OPEN 123.ESPLOG BUT NOT 123.SOPLOG.BOTH FILES ARE SAME ONLY
WITH DIFFERENT EXTENSION.WHY?
CAN NAYONE PLEASE.....TELL ME HOW CAN I FIX THIS .THIS IS VERY URGENT
ISSUE FOR ME.ANY HELP IS MUCH MUCH APPRICATE.
THANKS,
GILL
pargat singh wrote on 01 mrt 2004 in
microsoft.public.inetserver.asp.general: Hi Everyone,
THIS IS SECOND TIME I AM POSTING MY PROBLEM.
Do not shout !!!
I have a log file like 123.log and i want to display this log in browser.In ASP page at top i have following.
<%Response.Buffer = true;%> <%Response.Expires = -1%>
Inside page i have
contentType = "text/plain";
Response.AddHeader("Content-Disposition","filename=" & sPath);
sPath undefined
Response.AddHeader("pragma","no-cache") Response.AddHeader ("cache-control","private")
Response.CacheControl = "no-cache" ------> I think this line is main.
"I think this line is main." I do not understand that. Response.ContentType = contentType
contentType undefined
Response.Clear() Response.BinaryWrite(File); --> File is return from COM in Binary mode.
file undeclared. Wahat is "return from COM" ?
Response.Flush
I can have one log per job or multiple logs per job. E.g 123.log or 123.log 123.esplog 123.soplog etc
When i click Button View Logs i check if one log open it using code above or if multiple log then response.redirect to other page where it list all logs like
123.log 123.esplog 123.soplog etc and user click on log and behavior is same as single log(means same code above).
I see no buttons at all in your code.
PROBLEMS WHICH I AM FACING ARE BELOW.
1.WHEN SINGLE LOG LIKE 123.LOG OPEN FINE (NO PROBLEM) BUT IF MULTIPLA LOG AND CLIECK ON 123.LOG I AM GETTING ERROR SAYING
Now you are shouting again. Something wrong with your caps-lock key ?
INTERNET EXPLORER CANNOT DOWNLOAD FILE 123.LOG. ...............
I feel very case sensitive about this.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Maybe he's trying to return all the files at once (in a loop)? Hard to say
without seeing the code.
Evertjan. wrote: pargat singh wrote on 01 mrt 2004 in microsoft.public.inetserver.asp.general:
Hi Everyone,
THIS IS SECOND TIME I AM POSTING MY PROBLEM.
Do not shout !!!
I have a log file like 123.log and i want to display this log in browser.In ASP page at top i have following.
<%Response.Buffer = true;%> <%Response.Expires = -1%>
Inside page i have
contentType = "text/plain";
Response.AddHeader("Content-Disposition","filename=" & sPath);
sPath undefined
Response.AddHeader("pragma","no-cache") Response.AddHeader ("cache-control","private")
Response.CacheControl = "no-cache" ------> I think this line is main.
"I think this line is main." I do not understand that.
Response.ContentType = contentType
contentType undefined
Response.Clear() Response.BinaryWrite(File); --> File is return from COM in Binary mode.
file undeclared. Wahat is "return from COM" ?
Response.Flush
I can have one log per job or multiple logs per job. E.g 123.log or 123.log 123.esplog 123.soplog etc
When i click Button View Logs i check if one log open it using code above or if multiple log then response.redirect to other page where it list all logs like
123.log 123.esplog 123.soplog etc and user click on log and behavior is same as single log(means same code above).
I see no buttons at all in your code.
PROBLEMS WHICH I AM FACING ARE BELOW.
1.WHEN SINGLE LOG LIKE 123.LOG OPEN FINE (NO PROBLEM) BUT IF MULTIPLA LOG AND CLIECK ON 123.LOG I AM GETTING ERROR SAYING
Now you are shouting again. Something wrong with your caps-lock key ?
INTERNET EXPLORER CANNOT DOWNLOAD FILE 123.LOG. ...............
I feel very case sensitive about this. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Numberwhun |
last post by:
Hello everyone! I am trying to learn java and have run into kind of a
snag. Here is the code that I have so far:
------ <begin_code> ----------
import javax.swing.*;
import...
|
by: HolaGoogle |
last post by:
Hi all,
Please help me with the following..it's realy urgent and i tried
everything i could and i can't get it work properly!! Thanks in
advance.
Here's what i'm trying to accomplish:
in my...
|
by: s_erez |
last post by:
Hi,
This is a realy tricky one.
I have an ASP.NET application where some pages are reading data from a
DB and presenting reports.
In order for the user to wait while the page is reading data from...
|
by: rked |
last post by:
I get nameSPAN1 is undefined when I place cursor in comments box..
<%@ LANGUAGE="VBScript" %>
<% DIM ipAddress
ipAddress=Request.Servervariables("REMOTE_HOST")
%>
<html>
<head>
<meta...
|
by: x muzuo |
last post by:
Hi guys,
I have got a prob of javascript form validation which just doesnt work
with my ASP code. Can any one help me out please.
Here is the code:
{////<<head>
<title>IIBO Submit Page</title>...
|
by: pshindle |
last post by:
DB2 Team -
I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for
Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack
files to a CD. I proceded to install this...
|
by: Jason |
last post by:
Hi,
I was wondering if any could point me to an example or give me ideas on how
to dynamically create a form based on a database table? So, I would have a
table designed to tell my application...
|
by: PEB |
last post by:
POSTING GUIDELINES
Please follow these guidelines when posting questions
Post your question in a relevant forum
Do NOT PM questions to individual experts - This is not fair on them and...
|
by: fatboySudsy |
last post by:
Hi,
I have constructed a client program that has given me some error codes that i just cannot see. I was wondering if a different set of eyes with much more experience than me could help me out. ...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |