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

Dual Links

Hey!

I have a problem and i am looking to implenement a simple
solution. On our site we have an ecom system, but we also
have a backup system incase the first system fails for
whatever reason, not likey to happen, but just in case.

So for every buy link on our site we have to put the
secondary system.

Does anyone know a way to implement this is such a way i
can have a master login (say to a database) and i type a
code and all the links would goto the seconday page, and
if i pressed another code they go back to normal.

Bascially i want a way to switch out everything on the
fly, so i dont have to go and rename all the backup links
to the first links, and vice versa, as the links that
need to be changed is growing, and would be hard to
switch all in an emergencyu.

Any input would be great.

Thanks!!
Jul 19 '05 #1
4 1475
without lots of IF statements how about having all links with something like

<a href=<%= Servernam %>/dir/page.asp>stuff</a>

And in your global.asa set the Servername value. this way one location to
switch it.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Dual Links" <an*******@discussions.microsoft.com> wrote in message
news:f7****************************@phx.gbl...
Hey!

I have a problem and i am looking to implenement a simple
solution. On our site we have an ecom system, but we also
have a backup system incase the first system fails for
whatever reason, not likey to happen, but just in case.

So for every buy link on our site we have to put the
secondary system.

Does anyone know a way to implement this is such a way i
can have a master login (say to a database) and i type a
code and all the links would goto the seconday page, and
if i pressed another code they go back to normal.

Bascially i want a way to switch out everything on the
fly, so i dont have to go and rename all the backup links
to the first links, and vice versa, as the links that
need to be changed is growing, and would be hard to
switch all in an emergencyu.

Any input would be great.

Thanks!!

Jul 19 '05 #2
An alternative to global.asa, but the same basic approach as Curt's
suggestion, would be to store the information in the database, and pull it
in as a variable in an include file.

(This way, you can change the database and it affects the very next page
load, without having to change global.asa--which may kill valid sessions,
and have other ill effects.)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Dual Links" <an*******@discussions.microsoft.com> wrote in message
news:f7****************************@phx.gbl...
Hey!

I have a problem and i am looking to implenement a simple
solution. On our site we have an ecom system, but we also
have a backup system incase the first system fails for
whatever reason, not likey to happen, but just in case.

So for every buy link on our site we have to put the
secondary system.

Does anyone know a way to implement this is such a way i
can have a master login (say to a database) and i type a
code and all the links would goto the seconday page, and
if i pressed another code they go back to normal.

Bascially i want a way to switch out everything on the
fly, so i dont have to go and rename all the backup links
to the first links, and vice versa, as the links that
need to be changed is growing, and would be hard to
switch all in an emergencyu.

Any input would be great.

Thanks!!

Jul 19 '05 #3
I'd have to say that such a thing should be handle with your internal
routing on your network. If serverA goes down, reroute the http requests to
serverB. Of course, as you realize, switching servers on the fly will lose
your sessions, so your idea of storing data in a database (on serverC) would
be a good solution.

Ray at home

"Dual Links" <an*******@discussions.microsoft.com> wrote in message
news:f7****************************@phx.gbl...
Hey!

I have a problem and i am looking to implenement a simple
solution. On our site we have an ecom system, but we also
have a backup system incase the first system fails for
whatever reason, not likey to happen, but just in case.

So for every buy link on our site we have to put the
secondary system.

Does anyone know a way to implement this is such a way i
can have a master login (say to a database) and i type a
code and all the links would goto the seconday page, and
if i pressed another code they go back to normal.

Bascially i want a way to switch out everything on the
fly, so i dont have to go and rename all the backup links
to the first links, and vice versa, as the links that
need to be changed is growing, and would be hard to
switch all in an emergencyu.

Any input would be great.

Thanks!!

Jul 19 '05 #4
> I'd have to say that such a thing should be handle with your internal
routing on your network. If serverA goes down, reroute the http requests
to
serverB.


Ah, the trade-offs of redundancy, fault tolerance and/or load balancing.
And $$$. And time to configure/maintain. I'm glad we have network admins
for that side of things. ;-)

But still, it's good to understand how they work, also...
Jul 19 '05 #5

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

Similar topics

9
by: Tomer Ben-David | last post by:
Hi I have a big j2ee appliction that was so forth run on a single cpu machine. I have tested it on a dual cpu machine, its running much slower (about X3 times slower). I know that...
3
by: Yaroslav K. Kravchishin | last post by:
Oracle 7.0.1 Server When I type SQL> select sysdate from dual; SYSDATE --------- 01-OCT-03 01-OCT-03 2 rows selected.
5
by: John Dalberg | last post by:
I am planning to build a server to be used as a SQL Server and web server. Right now I can only use a single box for both. I have read some threads were dual processors are having problems with...
2
by: Dave Mausner | last post by:
consider a one-row, two-column table. the right column is very long with text content. the left column is used for navigation links. i aligned the links with the top of the column so that they...
25
by: John Gibson | last post by:
Hi, all. I need to upgrade my dual Xeon PostgreSQL engine. Assuming similar memory and disk sub-systems, I am considering a Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that...
2
by: webwarrior | last post by:
Hi, Is there a reason why we have to pay more for licensing for a different kind of processor? Why are we not charged for the Hyperthreading on some processors also. If Oracle is really...
2
by: bruce_brodinsky | last post by:
Don't know whether to post this on a hardware or software board, so here goes: I wrote a c# chess program which searches for checkmate. Now, it's single-threaded. But I was thinking. I just got...
1
by: Adam Hartshorne | last post by:
Hi All, I need to create a series of "dual graphs", I was wondering if anybody knew of a library which contains an efficient data structure to hold such a graph and method to traverse/search. ...
2
by: =?Utf-8?B?d29kYXo=?= | last post by:
I have a dual patition with vista(not functioning) on the c drive as primary capadity 108GB 2 used, and an E drive running XP 40GB 39.6Gb used. Please note I like the vista program. But in this...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.