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

  • Home
  • SEARCH
  • 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 8840013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:22:06+00:00 2026-06-14T10:22:06+00:00

I have a structure like above and they are individual controls not a gridview

  • 0

enter image description here

I have a structure like above and they are individual controls not a gridview so when a user fills the respective section only it should get entered into the DB but all the other fields also getting inserted.

  InsertObjectives(lblCommunication.Text, tbObj1.Text, tbRating.Text, tbStrength.Text,   cmn.Type, cmn.Contribution, cmn.ContributionRemarks);
        InsertObjectives(lblDomain.Text, tbObj2.Text, tbRating1.Text, tbStrength1.Text, cmn.Type, cmn.Contribution, cmn.ContributionRemarks);
        InsertObjectives(lblLeadership.Text, tbObj3.Text, tbRating2.Text, tbSTrength2.Text, cmn.Type, cmn.Contribution, cmn.ContributionRemarks);
        InsertObjectives(lblBehavior.Text, tbObj4.Text, tbRating3.Text, tbStrength3.Text, cmn.Type, cmn.Contribution, cmn.ContributionRemarks);




public void InsertObjectives(string lbl, string txtobj, string tbrating, string       tbstr,string strType,string strContribution,string strRemarks)
    {
        Common cmn = new Common();
        cmn.InsertObject(lbl, txtobj, tbrating, tbstr,strType,strContribution,strRemarks);

    }

Any help on this problem??

  • 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-14T10:22:07+00:00Added an answer on June 14, 2026 at 10:22 am

    Similarly, you can do it for the rest of the fields:

    if (tbObj1.Text.Length > 0 && 
        tbRating.Text.Length > 0 && 
        tbStrength.Text.Length > 0)
    {
        InsertObjectives(lblCommunication.Text, tbObj1.Text, tbRating.Text, tbStrength.Text,   cmn.Type, cmn.Contribution, cmn.ContributionRemarks);
    }
    

    OR, define this method:

    bool CheckInputReady(params TextBox[] txtBoxes)
    {
        bool inputReady = true;
    
        for (int i = 0; i < txtBoxes.Length; i++)
        {
            if (String.IsNullOrEmpty(txtBoxes[i].Text))
            {
                inputReady = false;
                break;
            }
        }
        return inputReady;
    }
    

    Usage:

    if (CheckInputReady(tbObj1, tbRating, tbStrength))
    {
        InsertObjectives(lblCommunication.Text, tbObj1.Text, tbRating.Text, tbStrength.Text,   cmn.Type, cmn.Contribution, cmn.ContributionRemarks);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have structure like this. <ul class=gallerylist> <li> <image ...> <input ...> </li> <li>
I have a structure like this struct structure { BaseObject &A; //BaseObject has a
I have a structure like this: var var1 = { array1 : ['value1','value2', ...],
I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the
I have a structure like the following: <form> <input type=text /> <input type=text />
I have xml structure like this: <Group id=2 name=Third parentid=0 /> <Group id=6 name=Five
I have a structure like: <div id=holder> <div id=first></div> <div class=box>I'm the first</div> <div
I have directory structure like so: |-- ROOT |-- Project1 | |-- application |
My table have data structure like this cate_id task_id date_start date_end other 34 14
Say I have a structure like: class SomeObject Public Name as String Public Created

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.