By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,024 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,024 IT Pros & Developers. It's quick & easy.

compilation question

P: n/a
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?
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> 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

Nov 18 '05 #2

P: n/a
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...eobjectmodel.a
sp?frame=true

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

#Web Forms Code Model
http://msdn.microsoft.com/library/en...mscodemodel.as
p?frame=true

#Web Forms Page Processing
http://msdn.microsoft.com/library/en...msPageProcessi
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
Nov 18 '05 #3

P: n/a
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

Nov 18 '05 #4

P: n/a
TS
it makes sense, thanks

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Fe*************@cpmsftngxa10.phx.gbl...
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

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.