Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2007, 03:30 AM
Registered User
 
Join Date: Jul 2007
Location: Tiverton, RI, USA.
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" >
</SCRIPT>

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
Reply With Quote
  #2 (permalink)  
Old July 2nd, 2007, 08:32 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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?

-Peter
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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 sarcv@yahoo.com 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



All times are GMT -4. The time now is 04:49 PM.


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