Hello,
I'm working on an ASP.net 2.0 web project using VS 2005. I'm on my laptop
running IIS on WinXP SP2 with all the latest updates. The Default web site
is set to run on .net 2.0 My project uses a master page.
I have two separate issues that I think are related.
First, I can't figure out why changes to my CSS don't load when I start the
project. The css is in the master page. The CSS loads, but only the last
version I hit F5 for. I always have to hit F5 to see the changes. I set
the IE option to Check for newer versions of stored pages every time I visit
the webpage. Yes I closed all instances of IE and even rebooted for good
measure. No luck.
Second, I can't get javascript to work when it's being called using the src
attribute. I use
<script type="text/javascript" src="test.js" ></script>
test.js is in the same folder as test.aspx, which calls it. I stripped
everything out of the files - even the code-behind file. All that's in the
..js file is an alert function. The only thing on the web form is a button
that calls the function using OnClientClick. It works if I put the function
in the web form so I know javascript works. I had a brief moment of success
when it worked - I thought - but it was having the same problem as the CSS -
It would not show the latest changes without hitting F5. I would make the
message "aaaaa" and start the project, hit F5 and see "aaaaa". I'd stop the
project, change the message to "bbbbb", start the project and still see
"aaaaa" until I hit F5 and see "bbbbb".
This is why I think the CSS and javascript problems are related.
Does anyone know why this is happening?
Thanks.
Matthew Wells
Matthew.Wells@F irstByte.net
I'm working on an ASP.net 2.0 web project using VS 2005. I'm on my laptop
running IIS on WinXP SP2 with all the latest updates. The Default web site
is set to run on .net 2.0 My project uses a master page.
I have two separate issues that I think are related.
First, I can't figure out why changes to my CSS don't load when I start the
project. The css is in the master page. The CSS loads, but only the last
version I hit F5 for. I always have to hit F5 to see the changes. I set
the IE option to Check for newer versions of stored pages every time I visit
the webpage. Yes I closed all instances of IE and even rebooted for good
measure. No luck.
Second, I can't get javascript to work when it's being called using the src
attribute. I use
<script type="text/javascript" src="test.js" ></script>
test.js is in the same folder as test.aspx, which calls it. I stripped
everything out of the files - even the code-behind file. All that's in the
..js file is an alert function. The only thing on the web form is a button
that calls the function using OnClientClick. It works if I put the function
in the web form so I know javascript works. I had a brief moment of success
when it worked - I thought - but it was having the same problem as the CSS -
It would not show the latest changes without hitting F5. I would make the
message "aaaaa" and start the project, hit F5 and see "aaaaa". I'd stop the
project, change the message to "bbbbb", start the project and still see
"aaaaa" until I hit F5 and see "bbbbb".
This is why I think the CSS and javascript problems are related.
Does anyone know why this is happening?
Thanks.
Matthew Wells
Matthew.Wells@F irstByte.net
Comment