Click here to Skip to main content
15,890,527 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ??? Pin
Stephan Pilz7-Apr-10 10:25
Stephan Pilz7-Apr-10 10:25 
GeneralRe: Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ??? Pin
T M Gray7-Apr-10 10:44
T M Gray7-Apr-10 10:44 
GeneralRe: Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ??? Pin
daveyerwin7-Apr-10 10:50
daveyerwin7-Apr-10 10:50 
Questionhow to make a link to facebook? Pin
bigeyed6-Apr-10 3:33
bigeyed6-Apr-10 3:33 
AnswerRe: how to make a link to facebook? Pin
Dalek Dave6-Apr-10 11:54
professionalDalek Dave6-Apr-10 11:54 
QuestionUnable to run Tomcat6.0 server on Eclipse3.4 Pin
Ram Bonala5-Apr-10 23:37
Ram Bonala5-Apr-10 23:37 
AnswerRe: Unable to run Tomcat6.0 server on Eclipse3.4 Pin
Garth J Lancaster6-Apr-10 0:07
professionalGarth J Lancaster6-Apr-10 0:07 
QuestionCustom error pages .Net [modified] Pin
markymark825-Apr-10 22:44
markymark825-Apr-10 22:44 
Hi all,

I have a custom 404 error page for my site, it is an aspx page as it uses the master template to retain site navigation etc.

I have configured the web.config file, and so all un-found pages redirect to my 404 page just fine, but for directories not found it doesn't work, which I get just fine.
What I have done then is to change the error page that IIS serves up, telling it to point to my 404 page relative to the site root.
This too works fine, but only for urls such as : www.mysite.co.uk/afakedir

but for: www.mysite.co.uk/afakedir/ it screws up my links to js files and stylesheets etc. obviously because these are set to be relative to the path, which is changed when a trailing / is added.

How do I get round this without putting in absolute links to my js and css files etc?

They need to be relative as I don't want to be making changes between my development and live site and obviously the paths would be different.

I'm sure i'm not the only person to have this problem, or have tried this, I just can't seem to find a solution that works all round.

Any help would be appreciated, even just pointing me in the right direction Smile | :)

--- What I forgot to mention is that I initially need this to work on iis6, but will need it to work on iis 7.5 also..

Many thanks..

Mark
modified on Tuesday, April 6, 2010 5:02 AM

AnswerRe: Custom error pages .Net Pin
T M Gray7-Apr-10 7:29
T M Gray7-Apr-10 7:29 
GeneralRe: Custom error pages .Net Pin
markymark827-Apr-10 10:21
markymark827-Apr-10 10:21 
Questionz-index in IE6 Pin
Dot-Net-Dev5-Apr-10 18:46
Dot-Net-Dev5-Apr-10 18:46 
AnswerRe: z-index in IE6 Pin
RCoate5-Apr-10 20:46
RCoate5-Apr-10 20:46 
GeneralRe: z-index in IE6 Pin
Dot-Net-Dev5-Apr-10 23:47
Dot-Net-Dev5-Apr-10 23:47 
GeneralRe: z-index in IE6 Pin
Jayapal Chandran7-Apr-10 9:00
Jayapal Chandran7-Apr-10 9:00 
GeneralRe: z-index in IE6 Pin
Jayapal Chandran5-May-10 22:02
Jayapal Chandran5-May-10 22:02 
Questionmake sure all of the classes used in the page are built or referenced in the project Pin
Member 10701625-Apr-10 10:46
Member 10701625-Apr-10 10:46 
QuestionHow to speed up to website Pin
vdtrip5-Apr-10 7:41
vdtrip5-Apr-10 7:41 
AnswerRe: How to speed up to website Pin
T M Gray5-Apr-10 10:54
T M Gray5-Apr-10 10:54 
GeneralRe: How to speed up to website Pin
vdtrip5-Apr-10 10:59
vdtrip5-Apr-10 10:59 
AnswerRe: How to speed up to website Pin
MyDevBank5-Apr-10 10:55
MyDevBank5-Apr-10 10:55 
QuestionDecision in HTML Page Pin
Dalek Dave5-Apr-10 3:35
professionalDalek Dave5-Apr-10 3:35 
AnswerRe: Decision in HTML Page Pin
Not Active5-Apr-10 4:02
mentorNot Active5-Apr-10 4:02 
GeneralRe: Decision in HTML Page Pin
Dalek Dave5-Apr-10 6:12
professionalDalek Dave5-Apr-10 6:12 
AnswerRe: Decision in HTML Page Pin
daveyerwin5-Apr-10 4:24
daveyerwin5-Apr-10 4:24 
GeneralRe: Decision in HTML Page Pin
Dalek Dave5-Apr-10 6:14
professionalDalek Dave5-Apr-10 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.