Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 2nd, 2007, 03:30 AM
Registered User
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIS ->Javascripts, any clue?

Does IIS support Javascript and CSS? I have a small time server
running IIS. This mini website needs to link to an Access Database
(which it does fine), Uses Style sheets and Javscript. I'm trying to
attach the javascript files in ASP pages like so:
<SCRIPT type= "text/javascript" src="scripts/javascripts.js" >

and trying to attach my CSS like so:

<LINK HREF="scripts/style1.css" REL="stylesheet" TYPE="text/css">

Yet when I pull this up on a separate computer or even the localhost
none of my style sheet setting are included and my Javascript codes
and functions don't work.

When I view->source from IE menu I see my strips of code in there so
what is the problem?

I tried uploading it to a paid webserver and it worked fine. I'm sure
the code is correct, I just think I'm having a problem using IIS to
relolve JScript and CSS (maybe I'm missing some settings). Please if
someone can resolve this problem for me or point me to a different
webserver (one that is free, cheapIt or that I can test before
purchasing) It would be appreciated. I know CSS and Javascripts runs on client side.

Bhumit M Patel
Old July 2nd, 2007, 08:32 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

That is a strange problem. I've been using IIS to develop for years. Anyone who has been doing .NET web app developement prior to 2.0 has used IIS for development.

Can you try loading the CSS and JS files in the browser directly? (I.E. browse directly to <yourapp>/scripts/style1.css) This will at least verify that IIS is serving the files.

What about the path of your page? Is there a problem between the paths of your page and the script/css?


Similar Threads
Thread Thread Starter Forum Replies Last Post
clue krishna b BOOK: Professional C# 2005 with .NET 3.0 ISBN: 978-0-470-12472-7 0 June 13th, 2007 02:10 AM
IIS Service Unavailable -- >.aspx not recognized [email protected] ASP.NET 1.0 and 1.1 Professional 3 August 9th, 2006 10:38 AM
Comments in my javascripts 4 xristina Javascript 1 November 4th, 2004 10:31 AM
Comments in my javascripts 5 xristina Javascript 1 November 4th, 2004 10:31 AM
Comments in my javascripts xristina Javascript 2 November 4th, 2004 10:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.