Visual Studio and making changes to web form

J

Jay Williams

Hi, I created a simple ASP .Net website (not web application) in Visual
Studio 2005. In the default.aspx page I display a simple statement such as
"hello". When I run the web page with the built in web web server I see
"hello" printed, but if I change it to "hello world" and re-run I still just
see "hello". I do not believe it is my browser caching the page (tried
clearing history and cache, adding no cache headers etc.), I think it is
what Visual Studio stores in the temporary ASP .Net folders. If I close VS,
delete the folder for my website and then rerun I see my changes.

How can I refresh my website so that I see the most recent changes each time
I run? I am trying to work on some javascript and the changes I make are
not being displayed in the browser.

Thanks,
Jay
 
J

Jay Williams

How can I refresh my website so that I see the most recent changes each
time I run? I am trying to work on some javascript and the changes I make
are not being displayed in the browser.

I guess I just need to stop the development server in the icon tray and then
I see my changes the next time I run.
 
G

Gregory A. Beamer

Hi, I created a simple ASP .Net website (not web application) in
Visual Studio 2005. In the default.aspx page I display a simple
statement such as "hello". When I run the web page with the built in
web web server I see "hello" printed, but if I change it to "hello
world" and re-run I still just see "hello". I do not believe it is my
browser caching the page (tried clearing history and cache, adding no
cache headers etc.), I think it is what Visual Studio stores in the
temporary ASP .Net folders. If I close VS, delete the folder for my
website and then rerun I see my changes.

How can I refresh my website so that I see the most recent changes
each time I run? I am trying to work on some javascript and the
changes I make are not being displayed in the browser.

It very well can be browser caching, so I would set those settings
first. Another option is to hit control + F5, which forces the browser
to recache any data.

You then get to server caching, which might require a restart, but this
is not normally needed, as you can also deal with the settings and avoid
caching. If you are using a web application template, you can also
rebuild the site and force it to dump the server side cache so you get
the new page.

As a note: Changes in code, rather than tags, are less likely to be
cached.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top