473,781 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please Help ?????????

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.Buff er = true;%>
<%Response.Expi res = -1%>

Inside page i have

contentType = "text/plain";

Response.AddHea der("Content-Disposition","f ilename=" & sPath);
Response.AddHea der("pragma","n o-cache")
Response.AddHea der ("cache-control","priva te")

Response.CacheC ontrol = "no-cache" ------> I think this line is
main.

Response.Conten tType = contentType
Response.Clear( )
Response.Binary Write(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.redire ct 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
Jul 19 '05 #1
3 1468
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.goo gle.com...
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.Buff er = true;%>
<%Response.Expi res = -1%>

Inside page i have

contentType = "text/plain";

Response.AddHea der("Content-Disposition","f ilename=" & sPath);
Response.AddHea der("pragma","n o-cache")
Response.AddHea der ("cache-control","priva te")

Response.CacheC ontrol = "no-cache" ------> I think this line is
main.

Response.Conten tType = contentType
Response.Clear( )
Response.Binary Write(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.redire ct 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
Jul 19 '05 #2
pargat singh wrote on 01 mrt 2004 in
microsoft.publi c.inetserver.as p.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.Buff er = true;%>
<%Response.Expi res = -1%>

Inside page i have

contentType = "text/plain";

Response.AddHea der("Content-Disposition","f ilename=" & sPath);
sPath undefined
Response.AddHea der("pragma","n o-cache")
Response.AddHea der ("cache-control","priva te")

Response.CacheC ontrol = "no-cache" ------> I think this line is
main.
"I think this line is main." I do not understand that.


Response.Conten tType = contentType
contentType undefined

Response.Clear( )
Response.Binary Write(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.redire ct 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)
Jul 19 '05 #3
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.publi c.inetserver.as p.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.Buff er = true;%>
<%Response.Expi res = -1%>

Inside page i have

contentType = "text/plain";

Response.AddHea der("Content-Disposition","f ilename=" & sPath);


sPath undefined
Response.AddHea der("pragma","n o-cache")
Response.AddHea der ("cache-control","priva te")

Response.CacheC ontrol = "no-cache" ------> I think this line is
main.


"I think this line is main." I do not understand that.


Response.Conten tType = contentType


contentType undefined

Response.Clear( )
Response.Binary Write(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.redire ct 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.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2169
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 javax.swing.JApplet; import javax.swing.JOptionPane; import java.awt.Graphics;
1
2009
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 form i have a table with 3 rows (3 input text), in which user can enter values and then clik save. When he clicks the Save button, i'd like to be able to add the created items to the end of my table
0
1999
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 the DB I am using a DIV with a please wait message which is removed once the page is loaded. In addition I am using a global error handling using the Application_Error void in the Global.asax file. when the application is loading a page which...
2
2380
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 http-equiv="Content-Type" content="text/html;
7
3615
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> </head> <style type="text/css">
4
3521
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 Fixpack on a test machine running ESE but encountered a serious error during the install. It started 'copying new files' but then stopped cold and displayed a dialog box asking me to "Please insert disk 1". (It all fit on one CD!) I clicked OK...
23
3286
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 to create certain textboxes, labels, and combo boxes? Any ideas would be appreciated. Thanks
1
54537
PEB
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 we instruct our experts to ignore any such PMs completely Be sure to give the version of Access that you are working with and the Platform and OS if applicable.
4
2359
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. Here are the error codes and underneath i have listed the program. Thanks in advance for looking. client.c: In function `main': client.c:118: error: syntax error before '-' token client.c: At top level: client.c:132: error: conflicting types...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.