Please help me someone. I have a deadline approaching fast (1-2 weeks) with other work to be done and I've been flanked by another problem from a department not able to do their part of the work. The problem comes down to this.

My solution works fine on localhost, but as soon as it gets embedded into our Internet portal it starts playing up. The main reason is that the URL's for the Ext.NET scripts and CSS files are relative to the hosting domain, and thus a web-browser starts looking on the parent portals domain, instead of that of the webapp. I need a way of telling Ext.NET to fully qualify it's links to scripts and CSS, relative to the webapp hosting domain, and not a domain AJAX'ing in the web app. All this and I'm trying to do it through code, rather than hard coding it as I may need to shift it around our servers and do not want to have to do a specific build for a specific URL.