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 4566494
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:47:48+00:00 2026-05-21T18:47:48+00:00

I am about to write a multitude of back-end C# methods for my webpage

  • 0

I am about to write a multitude of back-end C# methods for my webpage To update data in a database from 17 controls on my page itself.

Just before I write 17 Methods to handle a update procedure towards my database, I would like to know if it would be more efficient to write 1 huge method to handle all my update scripts for all the controls of my webpage? I am going to use the SQLConnection Object together with SQLCommand to achieve this.

What I am trying to prevent is long-running queries in my webpage because of too many methods (if that is even possible)

By default, If my controls are left empty, no corresponding data (like the Title of a career) in my table within the database must change.

So would it be better to write 17 different methods for my 17 controls? or to Write 1 large validation method to Search through every control’s contents and running an update script afterwards?

A little clarification

These 17 methods that I wanted to write for each control will only be called if the corresponding control does not have its default value (so if textbox 5 is empty, then textbox 5’s Update method won’t be called).

  • 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-05-21T18:47:49+00:00Added an answer on May 21, 2026 at 6:47 pm

    It’s probably worth making sure it’s only one database call, but whether it’s one method or 17 will make no significant difference at all, if the two approaches actually do the same thing. There may be an insignificant difference, but the time spent talking to the database is going to dwarf anything else.

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

Sidebar

Related Questions

I'm just about to write my first application in a duck typed language (Groovy).
I'm about to write a Scala command-line application that relies on a MySQL database.
I am about to write a tcp/ip data relay - application that passes a
I’m about to write a workflow in CRM that calls itself every day. This
I was about to write a program that just tracks the time I spend
I was just about to write this myself, but I know this has to
I am making a page where I try to allow people to write about
I am about to write just another Java-Test which covers a new feature. To
I am about to write a front end app, which will be used as
I am about to write an audio file converter for my side job at

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.