compilation question

T

TS

I have read that the first time a page is requested, it is compiled. If the
page has a code behind page, with no code on the design page, only html and
server controls, why does the page have to compile since the dll is already
compiled?

When Java script tags that point to files instead of having the JS embedded
in the page, does that js code page get downloaded at the same time the
parent page is downloaded, I would guess so?
 
J

John Timney \(Microsoft MVP\)

I have read that the first time a page is requested, it is compiled. If
the
page has a code behind page, with no code on the design page, only html and
server controls, why does the page have to compile since the dll is already
compiled?

Because the code behind is compiled into the parent, and the runtime has to
compile the parent to action the code behind.
When Java script tags that point to files instead of having the JS embedded
in the page, does that js code page get downloaded at the same time the
parent page is downloaded, I would guess so?

The JS file is loaded after the parent page loads, but before the page
renders itself. The JS files would be seperate web requests that the
browser actually makes.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
S

Steven Cheng[MSFT]

Thanks for John's informative suggestions.

Hi TS,

In addition to John's suggestions. Here are some further tech articles
regarding on your first question:

#The ASP.NET Page Object Model
http://msdn.microsoft.com/library/en-us/dnaspp/html/aspnet-pageobjectmodel.a
sp?frame=true

#Should I use Code-behind or Code-Inside (or Code-beside)?
http://msdn.microsoft.com/asp.net/community/inbox/codebeside/default.aspx

#Web Forms Code Model
http://msdn.microsoft.com/library/en-us/vbcon/html/vbconwebformscodemodel.as
p?frame=true

#Web Forms Page Processing
http://msdn.microsoft.com/library/en-us/vbcon/html/vbconWebFormsPageProcessi
ngStages.asp?frame=true

Hope also helps. Thanks.


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
S

Steven Cheng[MSFT]

Hi TS,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top