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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:57:03+00:00 2026-06-18T16:57:03+00:00

I Have a Form which will send Data to Multiple Table on Single Click,

  • 0

I Have a Form which will send Data to Multiple Table on Single Click,
Person, Education, Experience, Reference.

How can i add Data into Multiple Table so All Have Same Person ID in them,

I am Newbie and using tier Architecture, all the Database code is in DAL,, ) Working with Asp 2.0

I am thinking to doing it with a Stored procedure of Inserting into Person and getting PersonID a output parameter, but i dont know how to use that output Parameter to insert into other Tables.

My Sample COde is This

public virtual bool AddJobApplication(int JobID, string Name, string FatherName, string Phone, string Email, string Address, int AppID)
{

            obj_db2.objCmd.CommandText = "AddApplication";
            obj_db2.objCmd.CommandType = CommandType.StoredProcedure;
            obj_db2.objCmd.Parameters.AddWithValue("JjobID", JobID);
            obj_db2.objCmd.Parameters.AddWithValue("@Name", Name);
            obj_db2.objCmd.Parameters.AddWithValue("@FName", FatherName);
            obj_db2.objCmd.Parameters.AddWithValue("@Email", Email );
            obj_db2.objCmd.Parameters.AddWithValue("@Address", Address);
            obj_db2.objCmd.Parameters.AddWithValue("@Phone", Phone);
            SqlParameter param = new SqlParameter("@AppID", AppID);
            param.Direction = ParameterDirection.Output;
            param.ParameterName = "@AppID";
            param.DbType = DbType.Int32;
            obj_db2.objCmd.Parameters.Add(param);
            obj_db2.objCmd.ExecuteNonQuery();

}

I have this Function in DAL and i am getting param as output Paramter, I know i can access this AddJobApplication from code behind to enter form information, but not getting the point of how to use this output to insert,, Sorry if i am Taking Very Low Level but i need help.

  • 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-18T16:57:05+00:00Added an answer on June 18, 2026 at 4:57 pm

    That really depends on the architecture that’s been established.

    If it’s easier, you can probably just return the identity of the new record instead of using an output parameter:

    INSERT INTO Person (
        FirstName,
        LastName
    )
    VALUES (
        'James',
        'Johnson'
    )
    
    SELECT @@IDENTITY --return the identifier of the new record
    

    If you’re going to be updating multiple tables though, make sure that it’s all done in the scope of a single transaction.

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

Sidebar

Related Questions

i have an form which will send some data to an php file ,
I have one column in my table which will store data in string format
I have a form that will send data via POST. I want that data
I have a asp.net web form which will submit information to come as emails.
I have a form where you may press a button which will give you
I have a form which have many check boxes in it. User will check
I have an HTML form which, when submitted by the user, will call a
I have created a macro for excel which will pop up form that contains
I have a form with 2 buttons, that depending on which is selected will
I have a form which POST's its data via AJAX: $.ajax({ type: POST, url:

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.