473,246 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

HTML Page With ASP Frames

I have a HTML page named Index.html which is divided into 3 frames. The
URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP
page.

Now when I go to Windows Explorer, navigate to the folder in which the
all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by
clicking with the mouse or by using the arrow keys on the keyboard),
strangely the Windows "File Download" dialog box (with 'Open', 'Save',
'Cancel', 'More Info' buttons) pops-up with the message

--------------------
Some files can harm your computer. If the file information below looks
suspicious, or you do not fully trust the source, do not open or save
this file.

File name: IndexRight.asp
File type: Active Server Document
From: C:\Inetpub\wwwroot\Folder1

This type of file can harm your computer if it contains malicious code.

Would you like to open the file or save it to your computer?

[Here comes the 4 buttons stated above]
--------------------

Now why is this happening? This is the first time I am coming across
such a weird behavior.

Note that if the frame which has the ASP file is replaced with a HTML
file, then this dialog box doesn't pop-up. It pops-up only if one of
the frames in Index.html houses a ASP file.

Jan 2 '07 #1
8 3315
wrote on 02 jan 2007 in microsoft.public.inetserver.asp.general:
I have a HTML page named Index.html which is divided into 3 frames. The
URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP
page.

Now when I go to Windows Explorer, navigate to the folder in which the
all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by
clicking with the mouse or by using the arrow keys on the keyboard),
strangely the Windows "File Download" dialog box (with 'Open', 'Save',
'Cancel', 'More Info' buttons) pops-up with the message

--------------------
Some files can harm your computer. If the file information below looks
suspicious, or you do not fully trust the source, do not open or save
this file.

File name: IndexRight.asp
File type: Active Server Document
From: C:\Inetpub\wwwroot\Folder1

This type of file can harm your computer if it contains malicious code.

Would you like to open the file or save it to your computer?

[Here comes the 4 buttons stated above]
--------------------

Now why is this happening? This is the first time I am coming across
such a weird behavior.

Note that if the frame which has the ASP file is replaced with a HTML
file, then this dialog box doesn't pop-up. It pops-up only if one of
the frames in Index.html houses a ASP file.
Access the pages via http://localhost/... otherwise IIS will not be
active on your pages, and the ASP pages will be seen as strange pages by
your browser and also the ASP code will not be executed.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 2 '07 #2
I am very much aware of whatever you have pointed out, Evertjan but I
am not trying to open the HTML file with the 3 frames in a browser. All
I am doing is just selecting the HTML page with the 3 frames in Windows
Explorer which is when the "File Download" dialog pops-up.

I have been working with ASP for quite some time now but never have
come across anything as such which is why I am inquisitive to know why
is this happening. If I just select a ASP file in Windows Explorer,
this doesn't happen; so why is this happening?
Evertjan. wrote:
wrote on 02 jan 2007 in microsoft.public.inetserver.asp.general:
I have a HTML page named Index.html which is divided into 3 frames. The
URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP
page.

Now when I go to Windows Explorer, navigate to the folder in which the
all the 4 files (3 HTML + 1 ASP) reside & select Index.html (by
clicking with the mouse or by using the arrow keys on the keyboard),
strangely the Windows "File Download" dialog box (with 'Open', 'Save',
'Cancel', 'More Info' buttons) pops-up with the message

--------------------
Some files can harm your computer. If the file information below looks
suspicious, or you do not fully trust the source, do not open or save
this file.

File name: IndexRight.asp
File type: Active Server Document
From: C:\Inetpub\wwwroot\Folder1

This type of file can harm your computer if it contains malicious code.

Would you like to open the file or save it to your computer?

[Here comes the 4 buttons stated above]
--------------------

Now why is this happening? This is the first time I am coming across
such a weird behavior.

Note that if the frame which has the ASP file is replaced with a HTML
file, then this dialog box doesn't pop-up. It pops-up only if one of
the frames in Index.html houses a ASP file.

Access the pages via http://localhost/... otherwise IIS will not be
active on your pages, and the ASP pages will be seen as strange pages by
your browser and also the ASP code will not be executed.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 3 '07 #3
wrote on 03 jan 2007 in microsoft.public.inetserver.asp.general:
Evertjan. wrote:
>>
Access the pages via http://localhost/... otherwise IIS will not be
active on your pages, and the ASP pages will be seen as strange pages
by your browser and also the ASP code will not be executed.
[Please do not toppost on usenet]
I am very much aware of whatever you have pointed out,
"whatever"? What did I point out then that you atre aware of?
Evertjan but I
am not trying to open the HTML file with the 3 frames in a browser.
All I am doing is just selecting the HTML page with the 3 frames in
Windows Explorer which is when the "File Download" dialog pops-up.
What is the difference between "open" and "selecting" ?

I suppose we are talking about opening/selecting the frames page?
Or the 3 sepretately, which would be impossible as the frames page will
open the other two already?
Do you use the http:// local host form?
I have been working with ASP for quite some time now but never have
come across anything as such which is why I am inquisitive to know why
is this happening. If I just select a ASP file in Windows Explorer,
this doesn't happen; so why is this happening?
Same questions. Please elaborate.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 3 '07 #4
rn**@rediffmail.com wrote on 2 Jan 2007 15:58:27 -0800:
I am very much aware of whatever you have pointed out, Evertjan but I
am not trying to open the HTML file with the 3 frames in a browser. All
I am doing is just selecting the HTML page with the 3 frames in Windows
Explorer which is when the "File Download" dialog pops-up.
Which is the same as opening the HTML file in a browser - Explorer just
hosts a browser container to display the HTML.
I have been working with ASP for quite some time now but never have
come across anything as such which is why I am inquisitive to know why
is this happening. If I just select a ASP file in Windows Explorer,
this doesn't happen; so why is this happening?
I'm guessing when you select an ASP file in Windows Explorer it's not
actually running any ASP, right? Because if it is, you've somehow managed to
magically get Internet Explorer to redirect all requests for ASP files on
the local drive through a local install of IIS, and I've never seen that
happen. Best guess is you've mapped the .ASP extension to IE, and when you
select an ASP file in Windows Explorer you get a browser up showing the
HTML - all the ASP is ignored because it requires the ASP file to be
processed through IIS to actually work, and you're not doing that. By
pulling up the HTML file 3 frames you're now seeing a side effect of the
browser handling files called from the frames differently than you just
clicking on them.

In order for ASP to work, it *must* be requested through a web server that
can process the ASP code and output the resulting HTML. Whether this is IIS,
or an alternative like Apache with the ChiliASP mod, it's still entirely
different than just opening an ASP file on your hard disk through Windows
Explorer.

Dan
Jan 3 '07 #5
"whatever"? What did I point out then that you atre aware of?

By "whatever" I meant that I know that ASP pages have to be accessed
via http://localhost.otherwise IIS will not be active on my pages and
the ASP pages will be seen as strange pages by my browser and also the
ASP code will not be executed.
What is the difference between "open" and "selecting" ?
Selecting means going to My Computer, navigating to some folder &
SINGLE-CLICKING a file with the mouse (or by using the Arrow keys on
the keyboard) to just highlight it. If I just SINGLE-CLICK a, say, HTML
file, then that file will not open in Internet Explorer; it will just
get highlighted.

Opening means going to My Computer, navigating to some folder &
DOUBLE-CLICKING a file with the mouse to open the file For e.g. to
open a HTML file in Internet Explorer, I have to double-click the file
to open the HTML file in Internet Explorer.

Of course this behavior can be changed by going to the
'Tools'--->'Folder Options' menu & under the 'General' tab, selecting
the appropriate radio button under 'Click items as follows:' In my m/c,
the "Double-click to open an item (single-click to select)" radio
button is checked.

I guess I should have used the term "My Computer" instead of "Windows
Explorer".

I open "My Computer", navigate to C:\Inetpub\wwwroot\Folder1 where the
HTML file with the 3 frames named "Index.html" resides.

The 1st frame displays a HTML page named "IndexTop.html"
The 2nd frame displays a HTML page named "IndexLeft.html"
The 3rd frame displays a ASP page named "IndexBottom.asp"

In C:\Inetpub\wwwroot\Folder1, there are many other files as well like
HTML files, other ASP files, images etc. I locate Index.html in this
folder & then just single-click Index.html so that it gets highlighted.
I don't press the "Enter" key on the keyboard after highlighting
Index.html nor do I double-click Index.html. I just highlight
Index.html in C:\Inetpub\wwwroot\Folder1. This is when the "File
Download" dialog appears.

I am NOT OPENING Index.html in Internet Explorer by navigating to the
File--->Open menu, then clicking the 'Browse' button, then navigating
to C:\Inetpub\wwwroot\Folder1, locating Index.html & then selecting
Index.html to open Index.html. I am NOT doing anything like this. If I
do so, then the "File Download" dialog pops-up which is what happens if
one tries to open a ASP file in a browser using its physical path. Also
under such circumstances, the address bar in Internet Explorer displays
the physical path where Index.html resides like this:

C:\Inetpub\wwwroot\Folder1\Index.html

Using the above physical path in Internet Explorer, Index.html will
correctly display the 2 frames whose URLs are set to IndexTop.html &
IndexLeft.html but the 3rd frame whose URL is set to a ASP page named
IndexBottom.asp will remain blank.

To correctly use Index.html wherein one of the 3 frames has a ASP page,
I have to type the virtual path where Index.html resides which happens
to be

http://localhost/Folder1/Index.html.
Evertjan. wrote:
wrote on 03 jan 2007 in microsoft.public.inetserver.asp.general:
Evertjan. wrote:
>
Access the pages via http://localhost/... otherwise IIS will not be
active on your pages, and the ASP pages will be seen as strange pages
by your browser and also the ASP code will not be executed.

[Please do not toppost on usenet]
I am very much aware of whatever you have pointed out,

"whatever"? What did I point out then that you atre aware of?
Evertjan but I
am not trying to open the HTML file with the 3 frames in a browser.
All I am doing is just selecting the HTML page with the 3 frames in
Windows Explorer which is when the "File Download" dialog pops-up.

What is the difference between "open" and "selecting" ?

I suppose we are talking about opening/selecting the frames page?
Or the 3 sepretately, which would be impossible as the frames page will
open the other two already?
Do you use the http:// local host form?
I have been working with ASP for quite some time now but never have
come across anything as such which is why I am inquisitive to know why
is this happening. If I just select a ASP file in Windows Explorer,
this doesn't happen; so why is this happening?

Same questions. Please elaborate.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 3 '07 #6
wrote on 04 jan 2007 in microsoft.public.inetserver.asp.general:
>"whatever"? What did I point out then that you atre aware of?

By "whatever" I meant that I know that ASP pages have to be accessed
via http://localhost.otherwise IIS will not be active on my pages and
the ASP pages will be seen as strange pages by my browser and also the
ASP code will not be executed.
It seems an aggresive way of saying:

"You should know I am intelligent enough to be aware of that and I am
insulted."

However, since you did not mention that in your OQ, it was not obvious.
>What is the difference between "open" and "selecting" ?

Selecting means
[...]

... not that interesting, as that just depends on the set default behavour
of the windows explorer on the extension .html and .asp

Ususaly I set that .asp extension behavour to open in my standard editor.

Why not simply paste the path string in the address window of the IE?
>
C:\Inetpub\wwwroot\Folder1\Index.html

Using the above physical path in Internet Explorer, Index.html will
correctly display the 2 frames whose URLs are set to IndexTop.html &
IndexLeft.html but the 3rd frame whose URL is set to a ASP page named
IndexBottom.asp will remain blank.

To correctly use Index.html wherein one of the 3 frames has a ASP page,
I have to type the virtual path where Index.html resides which happens
to be

http://localhost/Folder1/Index.html.
As it should be, because now the ASP interpretor in the IIS, if
activated, will process/interpret the page with the .asp extension.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 4 '07 #7
OK, so you aren't opening the file - would have helped if you'd made that
clearer previously.

What you're seeing then is likely a result of the preview rendering that is
being shown on the left side - the preview is generated by processing the
HTML, and i doing so is causing a container HTML renderer to try to load the
ASP file because of the frame, hence you seeing the save dialog pop up.

Dan

rn**@rediffmail.com wrote on 3 Jan 2007 15:50:12 -0800:
>"whatever"? What did I point out then that you atre aware of?

By "whatever" I meant that I know that ASP pages have to be accessed
via http://localhost.otherwise IIS will not be active on my pages and
the ASP pages will be seen as strange pages by my browser and also the
ASP code will not be executed.
>What is the difference between "open" and "selecting" ?

Selecting means going to My Computer, navigating to some folder &
SINGLE-CLICKING a file with the mouse (or by using the Arrow keys on
the keyboard) to just highlight it. If I just SINGLE-CLICK a, say, HTML
file, then that file will not open in Internet Explorer; it will just
get highlighted.

Opening means going to My Computer, navigating to some folder &
DOUBLE-CLICKING a file with the mouse to open the file For e.g. to
open a HTML file in Internet Explorer, I have to double-click the file
to open the HTML file in Internet Explorer.

Of course this behavior can be changed by going to the
'Tools'--->'Folder Options' menu & under the 'General' tab, selecting
the appropriate radio button under 'Click items as follows:' In my m/c,
the "Double-click to open an item (single-click to select)" radio
button is checked.

I guess I should have used the term "My Computer" instead of "Windows
Explorer".

I open "My Computer", navigate to C:\Inetpub\wwwroot\Folder1 where the
HTML file with the 3 frames named "Index.html" resides.

The 1st frame displays a HTML page named "IndexTop.html"
The 2nd frame displays a HTML page named "IndexLeft.html"
The 3rd frame displays a ASP page named "IndexBottom.asp"

In C:\Inetpub\wwwroot\Folder1, there are many other files as well like
HTML files, other ASP files, images etc. I locate Index.html in this
folder & then just single-click Index.html so that it gets highlighted.
I don't press the "Enter" key on the keyboard after highlighting
Index.html nor do I double-click Index.html. I just highlight
Index.html in C:\Inetpub\wwwroot\Folder1. This is when the "File
Download" dialog appears.

I am NOT OPENING Index.html in Internet Explorer by navigating to the
File--->Open menu, then clicking the 'Browse' button, then navigating
to C:\Inetpub\wwwroot\Folder1, locating Index.html & then selecting
Index.html to open Index.html. I am NOT doing anything like this. If I
do so, then the "File Download" dialog pops-up which is what happens if
one tries to open a ASP file in a browser using its physical path. Also
under such circumstances, the address bar in Internet Explorer displays
the physical path where Index.html resides like this:

C:\Inetpub\wwwroot\Folder1\Index.html

Using the above physical path in Internet Explorer, Index.html will
correctly display the 2 frames whose URLs are set to IndexTop.html &
IndexLeft.html but the 3rd frame whose URL is set to a ASP page named
IndexBottom.asp will remain blank.

To correctly use Index.html wherein one of the 3 frames has a ASP page,
I have to type the virtual path where Index.html resides which happens
to be

http://localhost/Folder1/Index.html.

Evertjan. wrote:
>wrote on 03 jan 2007 in microsoft.public.inetserver.asp.general:
>>Evertjan. wrote:

Access the pages via http://localhost/... otherwise IIS will not be
active on your pages, and the ASP pages will be seen as strange pages
by your browser and also the ASP code will not be executed.

[Please do not toppost on usenet]
>>I am very much aware of whatever you have pointed out,

"whatever"? What did I point out then that you atre aware of?
>>Evertjan but I
am not trying to open the HTML file with the 3 frames in a browser.
All I am doing is just selecting the HTML page with the 3 frames in
Windows Explorer which is when the "File Download" dialog pops-up.

What is the difference between "open" and "selecting" ?

I suppose we are talking about opening/selecting the frames page?
Or the 3 sepretately, which would be impossible as the frames page will
open the other two already?
Do you use the http:// local host form?
>>I have been working with ASP for quite some time now but never have
come across anything as such which is why I am inquisitive to know why
is this happening. If I just select a ASP file in Windows Explorer,
this doesn't happen; so why is this happening?

Same questions. Please elaborate.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jan 4 '07 #8
this was like an illusion... we all misleaded to the conclusion tht he
is trying to open the html... but when i tried to read tht question once
again, things are clear.

this is the method some viruses use to spread. if we select the html
page or outlook mail file, infected by the virus, it will try to render
one preview and execute the code.

*** Sent via Developersdex http://www.developersdex.com ***
Jan 4 '07 #9

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

Similar topics

3
by: John Chen | last post by:
I need to use iframe to create a floating frame. But the contents in the iframe is not a external html file. Rather, it will be dynamically created by jsp. How can I set the src attribute to a URL...
7
by: xmp333 | last post by:
Hi, I know the noresize attribute will keep the user from resizing a frame, but is there a way to keep a frame from being resized by the browser (in response to things like different...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
2
by: Simon | last post by:
Hello, A frameset contains 3 html pages: page A, page B and page C. I need to get the HTML source of page B. I tried to use AxWebBrowser to do that, but failed. Do you have any idea? Thanks,...
2
by: Mark Kamoski | last post by:
Hi-- I need a code sample of how to redirect from an ASP.NET page to a frames-based html page and specifying what should load in the destination's frames. Any ideas? (Even air-code is much...
26
by: gswork | last post by:
i hadn't designed a web page from the ground up for about 9 years, then i was asked to do one. I'd dabbled with html and vaigly kept up with some of the developments but other than that i've been...
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
3
by: thompson_38 | last post by:
I am currently working on a C# application that uses an axWebBrowser control which displays HTML pages. This is being done to reuse an existing web application which resides on a client's...
2
by: maniji | last post by:
Dear All, Very Good Moring ,Please Help: I have a loginpage that calls a html pages with frames. This frame page has 3 pans. To the left pane I have added buttons . My requirment is when i...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.