Karthik,
 
In my data access layer, I do the same thing as you did, 
that is putting all the DataRader/DataSet methods. 
 
In the business layer, I put more business logic. For example,
some times, I need to contruct more complex data structure
to return to my presentation layer more information. 
perticular, some complex objects. So, my presentation
layer does not only comsume dataset. With those objects,
the presentation layer is easy to access methods, properties
exposed by the objects. When I use those objects across
pages, I just save the object to session. 
 
Thanks!
 
Eva
 
 
Karthik Nataraaj <[EMAIL PROTECTED]> wrote:
hello Eva,

Thanks for your reply. 

For example if we want to display all the users info in a datagrid,
from the code-behind file I would put
dgUser.DataSource = myDB.GetAllUsers();

myDB.GetAllUsers function would be in the DataAccess class which will
return a datareader/dataset to bind to the datagrid.

In this situation what is the use of the Business Layer? or how should
we code it in a n-tier architecture?

What code would you place in the Data Access LAyer dll file? I
normally place all the DataReader/DataSet methods which connects to
the database and returns a datareader/dataset.

how to create a seperate dll files for these layers? By using the
class library? If so, where to store the class library files? Inside
the "wwwroot" or "Visual studio projects" folder or anyother central
location?

I guess, most of the questions above would be basic questions, but
please guide me on this...

Thanks and Regards,

Karthik Nataraaj

On 6/3/05, Eva Li <[EMAIL PROTECTED]> wrote:
>  What I do is:
>  
>      1) .aspx pages & Codebehind files(presentation layer) (a dll)
>    2) Business lLayer (logic cs files) (another dll)
>    3) Data Access Layer (a dll or web service or remoting)
>  
>  Eva
> 
>  
>  
>  
>  Karthik Nataraaj <[EMAIL PROTECTED]> wrote:
>  hello,
>  
>  I'm a bit new to n-tier architecture in asp.net. Normally I build
>  applications with a base class which contains the common functions
>  which is inherited in most of the code-behind files.
>  
>  And I use a seperate DataAccess.cs namespace which contains all the
>  database related functions like public DataReader GetAllUsers() which
>  returns a datareader/dataset to the code-behind classes.
>  
>  I use this methods in the DataAccess namespace from the codebehind
>  files to access data.
>  
>  1) .aspx pages (presentation layer)
>  2) Codebehind and Base class files (logic)
>  3) DataAccess.cs (Data Access Layer)
>  (when I build the project all code compiled into a single .DLL file in
>  the /bin folder)
>  
>  My doubt is, am I following the correct n-tier model?
>  
>  Today I read an article in 4GuysFromRolla
>  http://aspnet.4guysfromrolla.com/articles/102302-1.aspx
> which
>  reccomends to use a separate business objects.
>  
>  I'm really confused now
>  
>  Can anybody advice me on this...... or please direct me to related article
>  
>  Thanks and Regards,
>  
>  Karthik Nataraaj
>  
>  
>  ---------------------------------
>  Yahoo! Groups Links
>  
>     To visit your group on the web, go to:
>  http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>    
>     To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>    
>     Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  
>  
>  
>  [Non-text portions of this message have been removed]
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to