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

Best HREF Usage

We have a pretty large ASP.NET 1.1 application at work that has about 100
programs total and about 60+ virtual directories. The application has an
editor program that lets use define the URL to each application. This
information is then somehow mapped to the user's login and the main menu
that they see on the screen. The application's editor expects all URLs to
start with http://servername/vdir/.

Anyway, to make a long story short, we use W2K3 Load Balancing for our web
farm. All works fine, but some of our customers have figured out ways to
bypass our DNS and access a particular server via that servers DNS name.
This really isn't a problem, except it defeats our load balancing or impacts
customers when we roll servers into/out of production for maintenance.
I.E., they access a specific server and we remove it from production... they
gotta try a different IP.

One of my recent challenges was troubleshooting a problem with one of our
clients. I had them access a specific server, which will bypass our virtual
load balanced IP address. This works, however, when they login and the main
menu displays, the main menu references the virtual IP or DNS name of the
server.... so when a link is clicked on a menu, they go back to load
balancer which points them to another server. Now they're basically on two
servers...

What I determined was that the editor application only allows http://
formatted URLs now not relative paths... which really doesn't make sense.
I'm currently have a long debate with our internal company writing our apps
to not expect or force users to use a FQDN for URLs. There is no reason why
I cannot use /vdir in place of http://servername/vdir when they're on the
same server/cluster.

I've basically proved this fact by manually editing the configuration file
where these URLs are saved and removing the http://server references and
replaced with blank.

The only issue I had was one Web Service that we call on any of our servers
that appears to be doing a string.parse() or something on the URL. It fails
if I do not have an http://servername defined. So the 1 program out of the
60+ programs I have to use a FQDN.

I know that either works fine when accessing web pages, but how do you guys
feel about this sort of non-standard practice. I never write design a
website and hardcode the FQDN for all my hyperlinks for pages on the same
server... so why should this application think it can get away with it?
Really stupid if you ask me.

Feb 28 '06 #1
0 907

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

Similar topics

3
by: Harag | last post by:
Hi all I'm using W2k Pro, ASP 3, IIS 5 & DWMX 6.1 and code in VBSCRIPT I currently use the <BASE href=XXXX> in all my pages and just read that this tag is no longer supported so will soon...
10
by: Andrea | last post by:
Hi everyone, I am in the process of learning javascript and have a question on location.href. Does javascript always require the <script language = "javascript"> (or script...
131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
2
by: JR | last post by:
Hi. I have a CGI script that will need to call itself an unknown number of times, to add rows, run queries, etc. At the bottom of the output that is produced by the script, there are four...
6
by: Dan V. | last post by:
What is the best/simplest way to have a large top image with let's say 14 thumbnails under it in 7 rows and to replace the top image with the larger one when a user clicks on a thumbnail? I would...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
53
by: usenet | last post by:
See <ul> <li><a name="link1" onClick="alert(this.name);return false;" href="#">Link1</a></li> <li><a name="link2" href="javascript:alert(this);">Link2</a></li> <li>Item 3</li> </ul> ...
8
by: Ian Davies | last post by:
Hello I am trying to run a few INSERT queries only if the user clicks 'continue' in a <a href> The queries takes variables created from SELECT queries. I have tried to acheive this by putting The...
19
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what ... ?...
4
by: howa | last post by:
a traditional javascript usage such as <a href="javascript:void(0)" onclick="xxx".... or <a href="javascript:doSomething()" will both show the javascript link on the browser status...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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.