473,788 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is a Recompile needed when you change the codebehind?

Hello:

I just rolled out an ASP and realized afterwards that one of the lines was
commented out.

When I make uncomment the line, do I have to copy everything or just the
related aspx, and the vb code module?

Thanks.

Venki
Nov 19 '05 #1
4 1274
If you are using the standard/typical model and change ANY code in the
codebehind file you will have to recompile.
If you change things in the HTML portion you can just copy up the modified
..ASPX file.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"vvenk" wrote:
Hello:

I just rolled out an ASP and realized afterwards that one of the lines was
commented out.

When I make uncomment the line, do I have to copy everything or just the
related aspx, and the vb code module?

Thanks.

Venki

Nov 19 '05 #2
In .net 1.x, if you change your .aspx you can simply copy that file over.
If you change any code file, you need to copy over the assembly (dll) that
that code file compiled into.

2.0 offers different compilation modes.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"vvenk" <vv***@discussi ons.microsoft.c om> wrote in message
news:80******** *************** ***********@mic rosoft.com...
Hello:

I just rolled out an ASP and realized afterwards that one of the lines was
commented out.

When I make uncomment the line, do I have to copy everything or just the
related aspx, and the vb code module?

Thanks.

Venki

Nov 19 '05 #3

If there's been a change in the code and ONLY the code such that it doesn't
affect the .aspx pages in any way, recompile your application and then
re-upload your DLL.

HTH
Altaf

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

"vvenk" <vv***@discussi ons.microsoft.c om> wrote in message
news:80******** *************** ***********@mic rosoft.com...
Hello:

I just rolled out an ASP and realized afterwards that one of the lines was
commented out.

When I make uncomment the line, do I have to copy everything or just the
related aspx, and the vb code module?

Thanks.

Venki

Nov 19 '05 #4
Curt:

Thanks so much for your quick reply.

Venki

"Curt_C [MVP]" wrote:
If you are using the standard/typical model and change ANY code in the
codebehind file you will have to recompile.
If you change things in the HTML portion you can just copy up the modified
.ASPX file.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"vvenk" wrote:
Hello:

I just rolled out an ASP and realized afterwards that one of the lines was
commented out.

When I make uncomment the line, do I have to copy everything or just the
related aspx, and the vb code module?

Thanks.

Venki

Nov 19 '05 #5

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

Similar topics

7
5047
by: Harold | last post by:
Hi, I have a question in SQL Server 2K, I use SQL Profile to trace, and find Stored Procedure was auto recompiled, like this row in the trace: SP:Recompile 15 1680 76 2004-02-27 16:01:11.610 How can I stop the auto recompile. Thanks Harold
6
2860
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
1
8581
by: Paul M. Frazier, Ph.D. | last post by:
I am writing a user information update page and I populate the form on Page_Load with the current values of the user's name, etc. When I change the text in one of the textbox controls (e.g., change the user's middle initial from M. to X.) and submit the form, the value seen for middleinitial.text in the Public Sub that is executed when the Update button is clicked is the initial value (M.) and not the new value (X.). Is there something I...
3
1780
by: Dai Hao | last post by:
Hi all, I have a solution that includes several projects, and one of them depends on all others. When I compile it in Visual Studio, it always recompile all the other projects even though I havn't modified them at all. This is annoying coz whenever I make a small change, I have to wait for the whole solution to be compiled. Can anybody suggest why and any way to solve it? p.s. whenever I press F5 for debug, VS will recompile the...
1
1329
by: stuart Dee | last post by:
Hi, When I upload my binaries or aspx is there any way to auto recompile or compile them all before i start the application Tia
10
2856
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I have to add a datalist control. Using this datalist control I should be able to add edit, modify and cancel the items listed in this control. Here is how I designed. I used placeholder to add the controls dynamically to the page on the click...
3
1104
by: Lerp | last post by:
Hi all, I have a developer that likes to work using all code behind forms no matter the size of the page, whereas I don't usually use this format. Today when I went to remove a field from one of his sections I ran into a problem. It kept referencing this field even though it was totally gone off of the codebehind page and the actual form. It was my understanding that the codebehind would compile when needed and a
1
1692
by: sarojanand | last post by:
Hi, I have created a project (abc) in my wwwroot folder on my system. From visual studio, i am able to run and view this page. Now I have deployed on wwwroot folder and for this I have edited some code(in .vb pages) according to the new path. Since these pages are no longer part of the project file in visual studio, how do I recompile my page so that it reflect the changes? Can I compile/recompile and recreate the dll without visual...
5
14491
by: Ben | last post by:
Hi! I need to refresh an entire database. I can recompile SPs with sp_recompile (or DBCC FLUSHPROCINDB), and refresh views with sp_refreshView, but I cannot find any way to refresh my user-defined functions (some of them are like views, with parameters). Any help appreciated :) !
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5398
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.