473,779 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Precompilation confusion

I'm confused by something to do with precompilation. ..

It is my understanding that if you have an sample.aspx with <%@ page
inherits="sampl eNameSpace.samp leClass" %> in visual studio.net then
sample.aspx.cs will automatically be precompiled into bin\sampleProje ct.dll

Do you have to manually run the csharp compiler to precompile your files
or is this only if you wish to precompile specific classes?

Cheers
Nov 16 '05 #1
1 1608
Hi

In Web Forms that use code-behind files, the @ Page directive (or @ Control
in user control files) contains attributes that specify the relationship of
the .aspx file and its code-behind file. These attribute are:

Codebehind: In Visual Studio, this attribute references the name of a file
that contains the class for the page. For example, if you create a Web Forms
page in Visual Studio called WebForm1, the Codebehind attribute will point to
WebForm1.aspx.v b or WebForm1.aspx.c s. This attribute is used only by the
Visual Studio Web Forms Designer. It tells the designer where to find the
page class so that the designer can create an instance of it for you to work
with. The attribute is not used at run time.

Inherits: Identifies the class from which the page derives. In Visual
Studio, this points to a class in the project assembly (.dll),

HTH
Ravikanth[MVP]

"Bingo" wrote:
I'm confused by something to do with precompilation. ..

It is my understanding that if you have an sample.aspx with <%@ page
inherits="sampl eNameSpace.samp leClass" %> in visual studio.net then
sample.aspx.cs will automatically be precompiled into bin\sampleProje ct.dll

Do you have to manually run the csharp compiler to precompile your files
or is this only if you wish to precompile specific classes?

Cheers

Nov 16 '05 #2

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

Similar topics

4
2543
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though my recordset did not. i read from pasts posts that some references will not convert. so i tried to change the dao 3.51 reference to dao 3.6 in access 97. then i imported all of the objects into an access 2003. it did not work. so my second...
0
1405
by: i_have_control | last post by:
I'd be grateful for any input on this one: I have three web domains. The destinations of two are set to folders on the first, though that fact is transparent to the user (i.e: it does not REDIRECT to the first domain). Example: http://www.maindomain.com (main hosted package) http://www.subdomain1.com -> www.maindomain.com/subdomain1/ http://www.subdomain2.com -> www.maindomain.com/subdomain2/
13
2116
by: Steve | last post by:
I have a form with a dataset and a datagrid. I created a dataview on this dataset. When the user modifies the datagrid, I look up this record in the dataview to make sure it is unique. Here is the confusion......... I thought that the DataView is the view from the dataset, but it seems that the dataview has the records that are in the datagrid, because everytime I search for a record that I know is NOT in the dataset, it finds it. I...
10
3665
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in binary mode. according to me, notepad opens files and each byte of the file read, it converts that byte from ascii to its correct character and displays
1
3181
by: Richard Lewis Haggard | last post by:
I'm having a problem with what appears to be some sort of confusion with references. I have a single solution with a dozen projects which has been working quite nicely for a while. The references between projects in the solution were established through project references, not by browsing to an assembly DLL. All of the projects are strongly named and use key files. Each project's AssemblyInfo.cs specifies the assembly version, where the...
0
1139
by: ad | last post by:
I deployment a precompiled asp.net applicaiton to server. But when user request the web page, server result in an error message This tag is generate by a precompilation tool, can't be delete. How can I do?
2
1654
by: archana | last post by:
Hi all, Can anyone tell me drawbacks of precompilation using ngen over jit compilation apart from that it generate native code for complete il code? thanks in advance
1
7049
by: Eyes | last post by:
Hello sir/madam, My COBOL program is :: *******TOP OF PROGRAM********* IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. *************************************** PROCEDURE DIVISION. DISPLAY 'HELLO WORLD' .
4
1898
by: pjr | last post by:
Hi.. I am trying to compile a set of code using aCC 3.52(HP-UX 11.00) and visibroker 3.3. I am running into following error. I appreciate any ideas that can help me resolve this error. Error 328: "/usr/local/vbroker/include/ir_c.hh", line 6795 # Function '>>' has not been defined yet; cannot call.
0
10306
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...
0
10139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10075
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
8961
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
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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 we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.