Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: About Busniess Logic and Data Logic.


Message #1 by "Fredrik Normen" <fredrik.normen@s...> on Wed, 19 Jul 2000 9:43:51
Hi !



Take a look at the follow.



-----

Sub LoginBtn_Click(Sender As Object, E As ImageClickEventArgs)

             

  If (Page.IsValid = True) Then

              

  'Attempt to Validate User Credentials using CustomersDB  

  Dim accountSystem As New IBuySpy.CustomersDB

  Dim customerId As String = accountSystem.Login(email.Text, 

password.Text)



This is taken from IBuySpy.

The example didn't call any Busniess Logic components, only data 

components.

What I have understand, so are the aspx pages compiled and work like a .exe 

file or something that way.

So you can now have the busniess logic in asp+ ? I'm right, or are there 

any reason to use asp+ to display data and and seperate busniess and data 

components from each other ?



/Fredrik Normen

Message #2 by "Rich Anderson" <richarda@b...> on Wed, 19 Jul 2000 21:1:25
>What I have understand, so are the aspx pages compiled and work like a 

.exe

>file or something that way.



Every ASP+ page is eventually compiled into a .NET component.  This means 

the page code eventually gets compiled and runs as native code and is not 

interpreted like ASP.  This means it is ultra fast (2-4 times fasters than 

ASP today)



>So you can now have the busniess logic in asp+ ? I'm right, or are there

>any reason to use asp+ to display data and and seperate busniess and data

>components from each other ?



The use of components in ASP+ really doesn't change.  If you know certain 

logic is going to be reused in many pages, it is a good idea to stick it 

into a component.  It is also a good idea to use components to shield pages 

developers (who might not write components) from your business logic.



Hope that makes some sense,



Richard Anderson 



Message #3 by "Fredrik Normen" <fredrik.normen@s...> on Mon, 24 Jul 2000 8:57:13
Thank you for the answers.



/Fredrik N




  Return to Index