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

Display different when calling from localhost(internally) and externally

I have an application with a page that has a web user control

When I call that page that has this user control, locally (http://
localhost/ApplicationX/default.aspx) and also externally ie (http://
<webserver>/ApplicationX/default.aspx), the display is all different.

For example, a text box shows with border on one and textbox shows as
label in the other. I am suspecting that it might be CSS issue. I
checked the CSS file and everything looks the same.

I am wondering why the same webpage shows up differently on the local
web server machine and on the external browser.

Any ideas?

Thanks in Advance

Apr 17 '07 #1
3 3368
You're probably right about its being a CSS issue, or moreso, a relative
path that's not right. Are your CSS references relative? (<link
rel="stylesheet" href="../somefile.css" />) Absolute from the root? (<link
rel="stylesheet" href="/somefile.css" />) Fully qualified? (<link
rel="stylesheet" href="http://someserver/file.css" />)

Perhaps your local DNS prevents you from resolving the WWW address or
something along those lines. Try loading each CSS file directly in the
browser and see if you get the results you'd expect.

Ray at work
"Shawn T" <ks******@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
>I have an application with a page that has a web user control

When I call that page that has this user control, locally (http://
localhost/ApplicationX/default.aspx) and also externally ie (http://
<webserver>/ApplicationX/default.aspx), the display is all different.

For example, a text box shows with border on one and textbox shows as
label in the other. I am suspecting that it might be CSS issue. I
checked the CSS file and everything looks the same.

I am wondering why the same webpage shows up differently on the local
web server machine and on the external browser.

Any ideas?

Thanks in Advance
Apr 17 '07 #2
Ray,
Thanks for answering.

Here are my test results(I didnt look into CSS):

I found that the text box shows a border when calling the page
externally and no border to the textbox calling on localhost.

So I test a simple HTML page with a input type textbox and "border-
style:None". Surprisingly, both the browsers are IE 7 (version being
the same) but one shows the border and the other one doesn't show.

Do you know how to fix this issue?
(I found setting something like border-right=0px, border-
left=0px..etc, but I would like to know why its behaving this way and
how to fix this in ASP.NET?)

Thanks once again


On Apr 17, 2:55 pm, "Ray Costanzo" <my first name at lane 34 dot
commercialwrote:
You're probably right about its being a CSS issue, or moreso, a relative
path that's not right. Are your CSS references relative? (<link
rel="stylesheet" href="../somefile.css" />) Absolute from the root? (<link
rel="stylesheet" href="/somefile.css" />) Fully qualified? (<link
rel="stylesheet" href="http://someserver/file.css" />)

Perhaps your local DNS prevents you from resolving the WWW address or
something along those lines. Try loading each CSS file directly in the
browser and see if you get the results you'd expect.

Ray at work

"Shawn T" <ks******@gmail.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...
I have an application with a page that has a web user control
When I call that page that has this user control, locally (http://
localhost/ApplicationX/default.aspx) and also externally ie (http://
<webserver>/ApplicationX/default.aspx), the display is all different.
For example, a text box shows with border on one and textbox shows as
label in the other. I am suspecting that it might be CSS issue. I
checked the CSS file and everything looks the same.
I am wondering why the same webpage shows up differently on the local
web server machine and on the external browser.
Any ideas?
Thanks in Advance- Hide quoted text -

- Show quoted text -

Apr 17 '07 #3
Hi Shawn,

When you view-source in your browser, do you have any text above the
<!DOCTYPE...declaration when the page is loaded locally? Like, perhaps
you have some values response.written out when you access things locally or
something. That would cause this in IE7. What doctype declaration appears
at the top of each page? Is it different between the two? Or the pages in
question being served by the same exact server and IIS site?

Ray at work

"Shawn T" <ks******@gmail.comwrote in message
news:11*********************@b58g2000hsg.googlegro ups.com...
Ray,
Thanks for answering.

Here are my test results(I didnt look into CSS):

I found that the text box shows a border when calling the page
externally and no border to the textbox calling on localhost.

So I test a simple HTML page with a input type textbox and "border-
style:None". Surprisingly, both the browsers are IE 7 (version being
the same) but one shows the border and the other one doesn't show.

Do you know how to fix this issue?
(I found setting something like border-right=0px, border-
left=0px..etc, but I would like to know why its behaving this way and
how to fix this in ASP.NET?)

Thanks once again

Apr 18 '07 #4

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

Similar topics

9
by: j askey | last post by:
I have a strange bandwidth issue that I have finally tracked down to something fairly specific if anyone has any ideas... Setup: Win2003 Server, PHP 4.3.4, IIS6.0, ISAPI Network: DSL line with...
23
by: news.hku.hk | last post by:
suppose i have: int price1 = 35000; int price2 = 600; int price3 = 8765; int price4 = 120000; int price5 = 3800000; and i want to output to screen the following:
9
by: Mikhail Teterin | last post by:
Hello! I'd like to have a variable of a pointer-to-function type. The two possible values are of type (*)(FILE *) and (*)(void *). For example: getter = straight ? fgetc : gzgetc; nextchar...
8
by: TTroy | last post by:
I have a few questions about "scope" and "visibility," which seem like two different things. To me "visibility" of the name of a function or object is the actual code that can use it in an...
9
by: PCI | last post by:
A Thread is created on form1 that addresses a sub in another class. When attempting to invoke and sub on the main form I recieve an error about a Window Handler needing to be created first. Is...
35
by: Michel Sanner | last post by:
Hello, One of the greatest feature of Python in my opinion is the way the interpreter can be used to integrate a wide variety of software packages by dynamically linking them. This approach has...
6
by: Ken Fine | last post by:
I'm using SQLDataSource, which generates some kind of dataset, and then I attach that datasource to various data display controls such as DataList and repeater which loop through to the end of the...
3
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. In VB.NET, is it possible to determine whether an ASP.NET is being accessed internally (within the same domain hosting the application) or externally (across the internet)? I've looked at...
1
by: rottmanj | last post by:
I am working on an application that requires me to use an external application to pull data from a odbc proxy. One issue that I have run into is trying to figure out how to pass data from my...
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: 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
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: 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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.