p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 14th, 2003, 08:12 PM
Friend of Wrox
Points: 965, Level: 12
Points: 965, Level: 12 Points: 965, Level: 12 Points: 965, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default transfearing code to aspx file from vb file

i have found that writing asp.net in the .aspx file is not recompiled as when written in .vb file, it return me to one of the good things of asp is that the speed when reloading the page with added changes, but writing in .vb file is more controlled code, so im asking if any one have a comment on what i have said

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 15th, 2003, 11:12 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
Default

When you write server code in the ASPX, it is compiled. It's just not compiled ahead of time. All .net code is compiled to Microsoft Intermediate Language (MSIL) which is then Just-In-Time (JIT) compiled to machine specific run-time code. By compiling in visual studio using code-behind files, you are manually executing the compile to MSIL (into the DLL). When IIS needs to execute the code, it still has to JIT compile from the DLL into machine code. It also compiles the ASPX page into a temporary DLL (in MSIL) when get's JIT compiled. Under both scenarios, the ASPX is getting compiled, you've just helped it by moving some of the server code into a precompiled DLL.

I almost exclusively use the code-behind model. It maintains the visual/logic separation or your markup and server code but more importantly it allows the classes within a project to work together. For a web application of any reasonable complexity you would need to use the code behind model. In order for page classes to utilize other classes they must all live within an assembly that contains them or can access them by reference to other assemblies. A self contained ASPX with inline server code lives as an isolated class entity making it very difficult to reference outside resource (like other classes).

What exactly do you mean by "more controlled code"? Is VB.net code written in-line with the ASPX markup "out of control"?

Peter
------------------------------------------------------
Work smarter, not harder.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.aspx.vb file doesnt run arabuafef ASP.NET 2.0 Professional 7 March 18th, 2008 01:20 PM
VB: .Exe file, serial code and activation code ivanlaw Pro VB 6 8 July 6th, 2007 06:44 AM
Read Text file and convert to Binary file VB.net sjlsysprg1 Pro VB.NET 2002/2003 4 June 29th, 2007 07:53 AM
Write .NET code in .ZIP File in place of .aspx savan_thakkar ASP.NET 1.0 and 1.1 Professional 3 November 2nd, 2006 08:28 AM
Calling a function from .vb file to aspx file !! NitinJoshi General .NET 4 February 10th, 2005 06:23 AM



All times are GMT -4. The time now is 05:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc