need suggestions

Last post 07-06-2009 1:32 AM by mudassarkhan. 10 replies.

Sort Posts:

  • need suggestions

    07-04-2009, 1:39 AM
    • Member
      231 point Member
    • vikvish1
    • Member since 08-20-2008, 6:11 AM
    • Chandigarh
    • Posts 156

    Hello there..

    I have questions and hoping for reply

    Well I am working asp.net 2.0 with ajaxtoolkit

     

    1. What is the best approach to coding… like in three architecture…? Like class file  

    store procedure and coding…

    1. if we not work like three architecture then is there any difference.. if we do jst coding and use aonly procedures with con.open and con.close..? any drawbacks?
    2. Where I can find software or website addess which tell me / or shows me what  kind of the errors in my web site and which code I copied…?

     

    Hoping for reply

    With Regards

    vik

     

    vikvish
  • Re: need suggestions

    07-04-2009, 7:17 AM

    Three tier applications are basically for supporting development(making development of a project in a team simpler) and has nothing to do with performence.

    More over 3 tier technique helps in code reuse and hence further helps you in a way!


    Saurabh Nijhawan(B.Tech. CSE,GGSIPU,New Delhi)
    Application Architect, Eminent Solutions, New Delhi.
    Freelancer | Teacher
    Remember to click "Mark as Answer" on the post, if it helped you.
    ASP.NET Weblog
    http://www.saurabhnijhawan.com
    Learning Made Easy


  • Re: need suggestions

    07-04-2009, 11:09 AM
    Answer
    • Participant
      1,547 point Participant
    • ctheriault
    • Member since 04-10-2009, 4:33 PM
    • Posts 276

    The strategy of n-Tiers (3-tiers) architecture, is develop your application in layers which are communicating with each other using a simple (and well documented) interface. It purpose is to insulate the complexity and rules within each layer to avoid having side effect on other layers.

    For example:

    •  if your "data access" layer is over Oracle, and you decide to change it later for "Linq over SQL-Server", you would re-engineer only this layer, without any impact on the rest of the application (presentation layer + business rules layer)
    • if your presentation layer is Windows form and you want to change for ASP.NET, Silverlight, AJAX, ..., you should be able to reuse near 100% of the data access layer and business rules layer.
    • and so on

    n-Tier architecture is also convenience to slip up the work between many software development teams, each layer is like a sub-product.

    That you choose to use SQL (strored proc) or C# to implement business logic is a decision that should be made taking "maintenance" into consideration, and sometimes performance depending if you want to move load to your DB server or from your DB server. Chosing one way or the other should be a balanced decision. I personnaly often chose to perform the processing in C# because it is powerful to create dynamic query (espicially with LINQ), but I also have store procs to handle some critical parts in T-SQL to spare network communication overheat with DB server.

    ----
    Don't forget to mark this posting as an "Answer" if it is helpful to you
  • Re: need suggestions

    07-04-2009, 12:14 PM
    • Contributor
      4,934 point Contributor
    • Segundo
    • Member since 09-07-2006, 2:44 PM
    • Lima, Perú
    • Posts 693

     Hi,

    Here is a good serie of articles about layered applications:

    http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=476

    Any doubt, post your comment.

  • Re: need suggestions

    07-04-2009, 2:47 PM
    • Member
      40 point Member
    • abdelnaby
    • Member since 07-02-2009, 1:07 PM
    • Posts 8

    use linQ 

    Mohamed Abdel Naby
    Senior asp.net developer
    Egypt
  • Re: need suggestions

    07-05-2009, 1:27 AM
    Answer
    • Participant
      1,726 point Participant
    • hs_jha
    • Member since 01-02-2007, 7:36 PM
    • Bangalore , India
    • Posts 468

    vikvish1 ,

    A sizable portion of software industry works on software maintenance.This needs you to work in team , have a planned arrchitecture.There are times when you need to understand and complete the leftovers of the programmer who worked previously. This needs a standard pattern which every one can understand.This is where you need an architecture.3 tier is the most popular one but there are couple more like MVC architecture as well.

    There is no problem if you do not adopt these architecture and go on coding like what is called a bare-bone programming for your personal applications.But when you return back to your codes after 2-3 years to improve it you may not remember where you had written what.

    So better go systematic than random to plan a system.

    This forum has a very nice tutorial series by Scott Mitchell for 3 tier architecture at

    http://www.asp.net/learn/data-access/?lang=cs



  • Re: need suggestions

    07-05-2009, 3:25 AM
    Answer
    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution.

    Srinivas Kotra.


  • Re: need suggestions

    07-05-2009, 4:03 AM
    Answer
    • All-Star
      59,903 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs

     1. Get or Create a Datahelper library. You can download MS Data Access Block which will take care of all connection related issues

    http://www.microsoft.com/downloads/details.aspx?FamilyID=f63d1f0a-9877-4a7b-88ec-0426b48df275

    2. Create a Data Access Layer to execute stored procs (Create a Class Library)

    3. Create Business Layer to perform busniess logic, validations and call the Data Access Layer methods (Create a Class Library)

    4. UI will call the Business layer methods

    Thus this leads to 3 layer architecture

     

     

  • Re: need suggestions

    07-06-2009, 12:59 AM
    • Member
      231 point Member
    • vikvish1
    • Member since 08-20-2008, 6:11 AM
    • Chandigarh
    • Posts 156

    thanks for reply...

    but reply my following question if u know..

     Where I can find software or website addess which tell me / or shows me what  kind of the errors in my web site and which code I copied…? and also show me or tell me which scripts is open ot close....

    i have downloaded and install the Data Access Application Block software.. but its not runnin properly

    wel i m using asp.net 2.0 with sql server 2005.

    will wait for your reply

    with regards

    vik

     

    vikvish
  • Re: need suggestions

    07-06-2009, 1:15 AM
    • Member
      132 point Member
    • safzal1212
    • Member since 02-22-2008, 8:16 PM
    • Posts 79

     Can you please elaborate your question a bit. The only suggestion that I can give to you is use n-tier architecuture if you have a good size project. If the application you are writting is small then don't use n-tier. In case of small size project create folders for classes inside app_code folder and don't add  multiple tiers. I would recommend stored procedures in any case.

  • Re: need suggestions

    07-06-2009, 1:32 AM
    Answer
    • All-Star
      59,903 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs
Page 1 of 1 (11 items)