473,468 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
0 837

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

Similar topics

2
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
8
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.