473,324 Members | 2,002 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,324 software developers and data experts.

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="sampleNameSpace.sampleClass" %> in visual studio.net then
sample.aspx.cs will automatically be precompiled into bin\sampleProject.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 1585
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.vb or WebForm1.aspx.cs. 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="sampleNameSpace.sampleClass" %> in visual studio.net then
sample.aspx.cs will automatically be precompiled into bin\sampleProject.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
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...
0
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...
13
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...
10
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...
1
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...
0
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. ...
2
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
by: Eyes | last post by:
Hello sir/madam, My COBOL program is :: *******TOP OF PROGRAM********* IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. *************************************** PROCEDURE DIVISION. DISPLAY...
4
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. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.