HTML Page With ASP Frames
HTML Page With ASP Frames
am 02.01.2007 23:18:10 von rn5a
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.
Re: HTML Page With ASP Frames
am 02.01.2007 23:48:11 von exjxw.hannivoort
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)
Re: HTML Page With ASP Frames
am 03.01.2007 00:58:27 von rn5a
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)
Re: HTML Page With ASP Frames
am 03.01.2007 09:48:46 von exjxw.hannivoort
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)
Re: HTML Page With ASP Frames
am 03.01.2007 14:34:57 von Daniel Crichton
rn5a@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
Re: HTML Page With ASP Frames
am 04.01.2007 00:50:12 von rn5a
> "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)
Re: HTML Page With ASP Frames
am 04.01.2007 01:10:40 von exjxw.hannivoort
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)
Re: HTML Page With ASP Frames
am 04.01.2007 10:19:29 von Daniel Crichton
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
rn5a@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)
Re: HTML Page With ASP Frames
am 04.01.2007 11:06:11 von Jo Varghese
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 ***