By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 3,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Dual Links

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
> 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 discussion thread is closed

Replies have been disabled for this discussion.