Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7803897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:44:09+00:00 2026-06-02T01:44:09+00:00

Recently, our professor stated that our presentation layer should consist of mostly method calls

  • 0

Recently, our professor stated that our presentation layer should consist of mostly method calls and that most of our code should be done in the business object and data access layers. My question is does this usually include the code for user input? What I mean is this; I have a form that consists of multiple text boxes so that the user can input values for different things. The user then clicks a button and the information is saved in a database.

The button even method looks like this:

//event handler for data input
public static void btnEnterAbRipperXInfo_Click(object sender, EventArgs e)
{
    //convert text box data into int datatype and assign to variable
    inAndouts = int.Parse(txtInAndOuts.Text);
    forwardBicycles = int.Parse(txtForwardBicycles.Text);
    reverseBicycles = int.Parse(txtReverseBicycles.Text);
    crunchyFrog = int.Parse(txtCrunchyFrog.Text);
    crossLegWideLegSitups = int.Parse(txtCrossLegWideLegSitups.Text);
    fiferScissors = int.Parse(txtFiferScissors.Text);
    hipRockNRaise = int.Parse(txtHipRockNRaise.Text);
    pulseUpsHeelsToHeaven = int.Parse(txtPulseUpsHeelsToHeaven.Text);
    vUpRollUpCombos = int.Parse(txtVUpRollUpCombos.Text);
    obliqueVUps = int.Parse(txtObliqueVUps.Text);
    legClimbs = int.Parse(txtLegClimbs.Text);
    masonTwists = int.Parse(txtMasonTwists.Text);            
} 

Should the code within the above button event method actually go into a business object or data access class instead of the presentation layer class?

This is not homework. I am creating a 90 day exercise program for my son outside of my programming class. I can also use it as a portfolio for when I graduate, therefore, I want to ensure that I am following standard practices.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:44:12+00:00Added an answer on June 2, 2026 at 1:44 am

    The BOL takes care of specific business checks / cases that need to be sanitized before going to the DAL (data access layer). The DAL just takes the inputs from the BOL and passes them down to the database.

    If your textbox values don’t need any type of business logic you can pass them to the BOL to freely pass them to the DAL.

    From the looks of your code there is no checking / validation needed. Although it may seem redundant, just to be consistent with your project, you can still pass them to the BOL. In essence your BOL won’t act upon these values – it will merely take these values and pass it up to the DAL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently our MODx Evolution based website was vulnerable to exploit. Code was inserted into
Microsoft has recently broken our longtime (and officially recommended by them) code to read
We have recently upgraded our code base from a 2005 version to the latest
Recently our site has been deluged with the resurgence of the Asprox botnet SQL
Recently our company has started measuring the cyclomatic complexity (CC) of the functions in
Recently our Subversion (SVN) server was changed and we did a svn switch .
Recently our newest web designer asked me why we use ASP.NET for our website.
Recently our Web hosting provider moved to a medium trust level for all shared
I'm using MongoDB and we are really happy with this DB. But recently our
Recently in our work, I've started getting some experience with SEO (finally). It's something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.