Hi
I have asp.net web site that is working well on my m/c if I access
using http://
But I depyoed on production,It requiers to use https:// , If i browse
tha page using https://...and on login page it doesn't link images,
css and .js files on the login page. Once the user login successfully
and try to browse login page agian, The images and .js files are
working fine
what can be problem? how to solve it?
Thanks in ADvance 3 2277
On Mar 2, 8:03 am, "ABCL" <ohm...@hotmail.comwrote:
Hi
I have asp.net web site that is working well on my m/c if I access
using http://
But I depyoed on production,It requiers to use https:// , If i browse
tha page usinghttps://...andon login page it doesn't link images,
css and .js files on the login page. Once the user login successfully
and try to browse login page agian, The images and .js files are
working fine
what can be problem? how to solve it?
Thanks in ADvance
It sounds like you might be using full URL paths to your images and js
files. If you have an https:// page and in your html code you have
<img src="http://www.mydomain.com/images/image.gif" then you will have
problems. You should use relative paths to your included js/css/image
files, i.e. <img src="/images/image.gif"and you shouldn't have any
problems.
The alternative is to create a variable in your code behind, something
like this:
string sHttps = Request.ServerVariables["HTTPS"] == "on" ?
"https://" : "http://";
Then in your aspx page, you would have <img src="<%=sHttps
%>www.somedomain.com/images/image.gif">
HTH,
Brandon
================== http://www.busedge.com
On Mar 2, 10:21 am, "BusEdge" <spil...@gmail.comwrote:
On Mar 2, 8:03 am, "ABCL" <ohm...@hotmail.comwrote:
Hi
I have asp.net web site that is working well on my m/c if I access
using http://
But I depyoed on production,It requiers to use https:// , If i browse
tha page usinghttps://...andonlogin page it doesn't link images,
css and .js files on the login page. Once the user login successfully
and try to browse login page agian, The images and .js files are
working fine
what can be problem? how to solve it?
Thanks in ADvance
It sounds like you might be using full URL paths to your images and js
files. If you have an https:// page and in your html code you have
<img src="http://www.mydomain.com/images/image.gif" then you will have
problems. You should use relative paths to your included js/css/image
files, i.e. <img src="/images/image.gif"and you shouldn't have any
problems.
The alternative is to create a variable in your code behind, something
like this:
string sHttps = Request.ServerVariables["HTTPS"] == "on" ?
"https://" : "http://";
Then in your aspx page, you would have <img src="<%=sHttps
%>www.somedomain.com/images/image.gif">
HTH,
Brandon
==================http://www.busedge.com
I am using relative path, That is why once user will authenticate the
images are displaying, but w/o autheticate it is not displaying
On Mar 2, 1:15 pm, "ABCL" <ohm...@hotmail.comwrote:
On Mar 2, 10:21 am, "BusEdge" <spil...@gmail.comwrote:
On Mar 2, 8:03 am, "ABCL" <ohm...@hotmail.comwrote:
Hi
I have asp.net web site that is working well on my m/c if I access
using http://
But I depyoed on production,It requiers to use https:// , If i browse
tha page usinghttps://...andonloginpage it doesn't link images,
css and .js files on the login page. Once the user login successfully
and try to browse login page agian, The images and .js files are
working fine
what can be problem? how to solve it?
Thanks in ADvance
It sounds like you might be using full URL paths to your images and js
files. If you have an https:// page and in your html code you have
<img src="http://www.mydomain.com/images/image.gif" then you will have
problems. You should use relative paths to your included js/css/image
files, i.e. <img src="/images/image.gif"and you shouldn't have any
problems.
The alternative is to create a variable in your code behind, something
like this:
string sHttps = Request.ServerVariables["HTTPS"] == "on" ?
"https://" : "http://";
Then in your aspx page, you would have <img src="<%=sHttps
%>www.somedomain.com/images/image.gif">
HTH,
Brandon
==================http://www.busedge.com
I am using relative path, That is why once user will authenticate the
images are displaying, but w/o autheticate it is not displaying- Hide quoted text -
- Show quoted text -
Are you using Windows Authentication? If so, then you need to check
file/folder permissions on those folders like where the images are.
You need to make sure that the user who authenticates has access to
read those files.
-Brandon
================== http://www.busedge.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Gary Feldman |
last post by:
I think I've found a deficiency in the design of urllib related to https.
In order to complete an https connection, it appears that URLOpener and
hence FancyURLOpener require the key and cert...
|
by: Todd Peterson |
last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS
connection, vs. an HTTP connection...
In an ASP/HTML page on my website, I've add a <link rel="shortcut
icon"...> in order to...
|
by: Gill Bates |
last post by:
I'm trying to login to a banking site
(https://www.providentconnection.com) using vb.net. I've tried many
variations of WebClient and HttpWebRequest; none of which I've got to
work. My latest...
|
by: Peter Chant |
last post by:
I'm currently authenticating a site I have built using basic http
authentication built into apache. This has zero overhead on php which is a
bonus but it seems to not quite work how I'd like.
...
|
by: Ryan Taylor |
last post by:
Hi.
I have some code that dynamically generates a PDF and spits this content
directly to the web browser. I use HTMLDoc to create the Pdf's from html. So
the user can click on a button "Print...
|
by: abcd |
last post by:
I am using https protocol and some of my pages are using relatie paths to
our images folder and gif files...
when the page is rendered the images are not rendered.....is there anything
wrong...
|
by: zxcv |
last post by:
I have inherited an app that is using java to generate images that it
loads into a PDF via external-graphic in XSL-FO. The problem I have is
that my architecture environment is going to require in...
|
by: Nader Shahin |
last post by:
I tried to develop an application to download a file from an Https server.
My application was able to download a file from a regural Http server.
I used a WebProxy and i passed the...
|
by: bizt |
last post by:
Hi,
I have a page that makes many XmlHttpRequest requests from a single
page. This works fine but I need some requests to be made over a
secure connection. To my understanding, when setting the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |