473,386 Members | 1,630 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,386 software developers and data experts.

Once page is transferred the form action is wrong

When implementing the Front Controller, you use Server.Transfer to
halt execution on the "imaginary" page and transfer to the "actual"
page. Thereby abstracting the url from the resource.

The problem I'm running up against is that when I transfer to the
"actual" page the action on the form is now set to the "actual" page
(like it should). So, all future postbacks go to the "actual" page
instead of the "imaginary". So I loose my beautiful abstraction
layer...

Any ideas on how I can resolve this. I just need to change the action
to the "imaginary" path.

"thanks" for "listening"
Nov 18 '05 #1
1 1041
Inject the following javascript at the end of the page. This will
change the action property of the form

<script language="javascript">
Form1.action = "ImaginaryPage.aspx";
</script>

Tommy,

Cl***@twobowmans.com (willwork4dsl) wrote in message news:<ea**************************@posting.google. com>...
When implementing the Front Controller, you use Server.Transfer to
halt execution on the "imaginary" page and transfer to the "actual"
page. Thereby abstracting the url from the resource.

The problem I'm running up against is that when I transfer to the
"actual" page the action on the form is now set to the "actual" page
(like it should). So, all future postbacks go to the "actual" page
instead of the "imaginary". So I loose my beautiful abstraction
layer...

Any ideas on how I can resolve this. I just need to change the action
to the "imaginary" path.

"thanks" for "listening"

Nov 18 '05 #2

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

Similar topics

2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
2
by: Phillip Windell | last post by:
This is really an HTML question I think, but it probably won't take much effort to answer (unless I'm answering or course). The HTML is all ASP generated and the ASP generates exactly what I want...
10
by: Chris Leffer | last post by:
Hi. If I have two forms in the same asp page: <form name='firstForm' action='myPage.asp'> </form> <form name='secondForm' action='myPage.asp'> </form>
10
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
2
by: Norman Peelman | last post by:
From: "Norman Peelman" <npeelman@cfl.rr.com> Subject: Re: posting form data to two php scripts at once Date: Sunday, December 17, 2006 12:06 AM <one.1more@gmail.comwrote in message...
2
by: dgbergman | last post by:
I have created a php login page in my site for my company. The goal is to get people into members area. Below is a list of steps that I take to create my login page in Dreamweaver CS3, can some one...
1
by: lev | last post by:
I want to pass a value(name) from a 'sign-in'(password) page to one(result) frame of a second, three-frame frameset page. I did this with 'action = result file.cgi' in the 'sign-in' file and...
9
by: RayDube | last post by:
Hello Gents, I want to be able to reward my members with credits, banner advertisements, text advertisements and even cash, but on a partially manual basis. I created a page where I could...
0
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,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...

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.