473,377 Members | 1,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,377 software developers and data experts.

aspx page changes not picked up by debugger unless do "Rebuild Solution"

If I create a new C# Web Project in Visual Studio and add this to the
Page_Load method for WebForm1:

Response.Write("firsttime");

then hitting F5 to debug the project of course shows the WebForm with
"firsttime" on the page.

But if I then change it to Response.Write("secondtime") and hit F5,
the changes don't take effect -- the WebForm still opens and displays
"firsttime". Even if I do "Build->Build Solution" and then hit F5,
the WebForm still displays "firsttime". It's only if I do
Build->*Rebuild* Solution and then debug, that the changes take effect
and I see "secondtime".

I haven't used Visual Studio much before doing ASP.Net but this seems
inconsistent with the way all other kinds of projects work. In
general, if you modify one of the source files and hit F5, the changes
take effect -- the source is saved and the necessary parts of the
project are rebuilt automatically. Is there some reason why ASP.Net
projects don't work this way? Some setting I can change so that
changes take effect when I hit F5?

The other way to make the changes take effect right away, is to
declare a new variable like "int x;", even if you never use it. If
you do that, the WebForm will display whatever you've modified
Response.Write() to write, even if you don't do Rebuild Solution
first. I guess this is why I didn't notice this problem until now,
since most of the time, the changes I made would be substantial enough
that the relevant parts would be rebuilt when I wanted to debug.

-Bennett
Nov 17 '05 #1
8 1522
What Version are you running etc..
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" to "secondtime" etc..
and it was giving me the correct output
may be .NET does not consider that a one line program is a serious enough
program and will not work for you... Kidding
"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:e6**************************@posting.google.c om...
If I create a new C# Web Project in Visual Studio and add this to the
Page_Load method for WebForm1:

Response.Write("firsttime");

then hitting F5 to debug the project of course shows the WebForm with
"firsttime" on the page.

But if I then change it to Response.Write("secondtime") and hit F5,
the changes don't take effect -- the WebForm still opens and displays
"firsttime". Even if I do "Build->Build Solution" and then hit F5,
the WebForm still displays "firsttime". It's only if I do
Build->*Rebuild* Solution and then debug, that the changes take effect
and I see "secondtime".

I haven't used Visual Studio much before doing ASP.Net but this seems
inconsistent with the way all other kinds of projects work. In
general, if you modify one of the source files and hit F5, the changes
take effect -- the source is saved and the necessary parts of the
project are rebuilt automatically. Is there some reason why ASP.Net
projects don't work this way? Some setting I can change so that
changes take effect when I hit F5?

The other way to make the changes take effect right away, is to
declare a new variable like "int x;", even if you never use it. If
you do that, the WebForm will display whatever you've modified
Response.Write() to write, even if you don't do Rebuild Solution
first. I guess this is why I didn't notice this problem until now,
since most of the time, the changes I made would be substantial enough
that the relevant parts would be rebuilt when I wanted to debug.

-Bennett

Nov 17 '05 #2
What Version are you running etc..
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" to "secondtime" etc..
and it was giving me the correct output
may be .NET does not consider that a one line program is a serious enough
program and will not work for you... Kidding
"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:e6**************************@posting.google.c om...
If I create a new C# Web Project in Visual Studio and add this to the
Page_Load method for WebForm1:

Response.Write("firsttime");

then hitting F5 to debug the project of course shows the WebForm with
"firsttime" on the page.

But if I then change it to Response.Write("secondtime") and hit F5,
the changes don't take effect -- the WebForm still opens and displays
"firsttime". Even if I do "Build->Build Solution" and then hit F5,
the WebForm still displays "firsttime". It's only if I do
Build->*Rebuild* Solution and then debug, that the changes take effect
and I see "secondtime".

I haven't used Visual Studio much before doing ASP.Net but this seems
inconsistent with the way all other kinds of projects work. In
general, if you modify one of the source files and hit F5, the changes
take effect -- the source is saved and the necessary parts of the
project are rebuilt automatically. Is there some reason why ASP.Net
projects don't work this way? Some setting I can change so that
changes take effect when I hit F5?

The other way to make the changes take effect right away, is to
declare a new variable like "int x;", even if you never use it. If
you do that, the WebForm will display whatever you've modified
Response.Write() to write, even if you don't do Rebuild Solution
first. I guess this is why I didn't notice this problem until now,
since most of the time, the changes I made would be substantial enough
that the relevant parts would be rebuilt when I wanted to debug.

-Bennett

Nov 17 '05 #3
MS News \(MS ILM\) wrote:
What Version are you running etc..
Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" > to "secondtime"

etc..

Did you do the debug while it still said "firsttime", and *then* change
it to "secondtime" and hit F5 again?

-Bennett

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
MS News \(MS ILM\) wrote:
What Version are you running etc..
Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" > to "secondtime"

etc..

Did you do the debug while it still said "firsttime", and *then* change
it to "secondtime" and hit F5 again?

-Bennett

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5
Well
I hit F5 I see "firsttime"
I exit browser
I change the text to "secondtime"
I hit F5
I see "secondtime"
I am running VS.NET 2003
May be I did not follow your procedure exactly??

"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
MS News \(MS ILM\) wrote:
What Version are you running etc..


Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" > to "secondtime"

etc..

Did you do the debug while it still said "firsttime", and *then* change
it to "secondtime" and hit F5 again?

-Bennett

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #6
Well
I hit F5 I see "firsttime"
I exit browser
I change the text to "secondtime"
I hit F5
I see "secondtime"
I am running VS.NET 2003
May be I did not follow your procedure exactly??

"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
MS News \(MS ILM\) wrote:
What Version are you running etc..


Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.
I tried it and it works, but I did not create a new project
I just added you line below and changed "firsttime" > to "secondtime"

etc..

Did you do the debug while it still said "firsttime", and *then* change
it to "secondtime" and hit F5 again?

-Bennett

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #7
"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
MS News \(MS ILM\) wrote:
What Version are you running etc..


Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.


Maybe this is because you're running the project remotely.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #8
"John Saunders" <jo***********@surfcontrol.com> wrote in message news:<ey**************@tk2msftngp13.phx.gbl>...
"Bennett Haselton" <be*****@peacefire.org> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
MS News \(MS ILM\) wrote:
What Version are you running etc..


Microsoft Development Environment 2002 v. 7.0.9466
Microsoft .NET Framework 1.0 Version 1.0.3705
Windows XP Home SP1
The ASP.Net Web projects are uploaded to a Windows 2000 Server machine
on the LAN.


Maybe this is because you're running the project remotely.


That looks like it -- I created a new C# Web Project using a copy of
VS.NET installed on the Windows 2000 Server machine itself, repeated
the steps I'd done earlier, and "firsttime" did get changed to
"secondtime" as expected. (Though when I did it again remotely from
my Windows XP Home machine, the update still did not take effect until
I did "Rebuild All".)

But since I want to keep doing the development on my Windows XP
machine, is there a reason that the changes don't take effect when you
do F5-debug if you're running the project remotely -- and why the
changes *do* take effect if you add a declaration of a new variable to
your code?

-Bennett
Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kevin Schneider | last post by:
Please forgive me if this is a bit off topic, but I haven't had any takers in other forums. With ASP.NET projects, is it possible to have VS.NET automatically change the configuration options of...
5
by: EdgarBM | last post by:
Hi, I'm working with .NET Remoting. I have a problem unregistering the server channel when I try to reuse it closing and reopening it in the same application. The second time I try to get an...
2
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
0
by: Bennett Haselton | last post by:
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the...
5
by: Nick Gilbert | last post by:
Hi, I'm not sure if I've broken my VS.NET installation or if there has always been a bug of some sort, but basically Find in Entire Solution (ctrl-shift-F) isn't finding strings in my solution's...
2
by: Bob Altman | last post by:
Hi all, I have a bunch of VB and VC++ solution files. I would like to write a batch file that tells each solution file to "Rebuild All". To complicate things, I don't want to assume that...
1
by: mac | last post by:
I just put C# express editiion on my son's computer so he can learn how to code, and we've run into a weird problem. Whenever he makes a change to his code and hits F6 (build) the IDE reports...
1
by: Ringo | last post by:
If I create a program in c# express edition, then try to open it with the full edition I get a "not a valid solution" error. I can click on the csproj file and everything works fine. I can even do...
8
by: plenty900 | last post by:
Hello, I'm trying to build a large project, and I've found that when something doesn't compile properly, and I attempt to re-build it, Visual C++ Express doesn't make a new attempt. So then I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.