473,406 Members | 2,816 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,406 software developers and data experts.

Calling an asp page from html

aps
Can anyone tell me why I get a file download window every time I call an ASP
page from an HTML window.

I have tried;
<frame src="Main Menu.asp" name="MainMenu">

and
<a href="Main Menu.asp" target="RHS">

and even
function LoadASP() {

var sURL;
sURL = "Main Menu.asp";
location.href = sURL;
}
window.onload = LoadASP;

and I always the 'File Download' window pop up.

Thanks for any help.
Arthur.
Nov 19 '05 #1
2 1188
Arthur,

Try specifying the url completely. http://www.mywebsite.com/MainMenu.asp

Oh, you probably shouldn't have a space in their either... If you leave that
you may have to encode it as "%20"

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"aps" <ap*@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Can anyone tell me why I get a file download window every time I call an
ASP
page from an HTML window.

I have tried;
<frame src="Main Menu.asp" name="MainMenu">

and
<a href="Main Menu.asp" target="RHS">

and even
function LoadASP() {

var sURL;
sURL = "Main Menu.asp";
location.href = sURL;
}
window.onload = LoadASP;

and I always the 'File Download' window pop up.

Thanks for any help.
Arthur.

Nov 19 '05 #2
aps
Thanks,

Fully qualifying the url works.

"S. Justin Gengo" wrote:
Arthur,

Try specifying the url completely. http://www.mywebsite.com/MainMenu.asp

Oh, you probably shouldn't have a space in their either... If you leave that
you may have to encode it as "%20"

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"aps" <ap*@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Can anyone tell me why I get a file download window every time I call an
ASP
page from an HTML window.

I have tried;
<frame src="Main Menu.asp" name="MainMenu">

and
<a href="Main Menu.asp" target="RHS">

and even
function LoadASP() {

var sURL;
sURL = "Main Menu.asp";
location.href = sURL;
}
window.onload = LoadASP;

and I always the 'File Download' window pop up.

Thanks for any help.
Arthur.


Nov 19 '05 #3

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

Similar topics

6
by: Pjotr Wedersteers | last post by:
Hi, When I include a script in my html I don't get any output back in the calling page. The script is on a remote location for the html page. Example given: myscript.php: <?PHP echo...
12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
5
by: Krishna | last post by:
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. Regards.., Krishna
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
1
by: desmcc | last post by:
Hi, I am launching a modal dialog through the usual javascript (window.showmodaldialog). When the modal dialog is complete (ie user selects OK), the calling page then refreshes itself by setting...
4
by: gengyue | last post by:
Hi, I need to call .Net webservice from my JSP page. My application is Struts application. It is deployed on Oracle application server. Here is the whole process. I have a login form. When user...
4
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
9
by: mrcheeky | last post by:
Hi, I'm stuck, but it's almost working! From a html page, my javascript calls a server-side php script. The php reads a value from a server-side .txt file and passes it back as a javascript...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.