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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:55:00+00:00 2026-05-14T02:55:00+00:00

im biulding a ASP.net application, which is connected to a database. the database design

  • 0

im biulding a ASP.net application, which is connected to a database. the database design is as follows

**Users Table**
UserID `(PK) autonumber`
Username

**Question Table**
QuestionID `(PK) autonumber`
QuestionNumber
QuestionText

**Questionnaire Table**
QuestionnaireID  `(PK) autonumber`
UserID `(FK) User Table`
Date

**Feedback Table**
FeedbackID `(PK) autonumber`
QuestionnaireID `(FK) Questionnaire Table`
QuestionID `(FK) Questions Table`
Answer
Comment

please can some one advise me on how I should go about inserting data into the questionnaire table and the feedback table. I know that the questionnaire table needs to be updated first. but the Questionnaire ID is linked to the feedback table, so how do I go about updating both tables ?

  • 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-14T02:55:00+00:00Added an answer on May 14, 2026 at 2:55 am

    Look at using Linq2Sql (In your project add a new Linq to Sql Classes dbml file and drag your tables onto it from the server exploter), it will map your tables to classes and a datacontext, which you can use to create new data objects to update your tables. It will automatically track and insert the necessary rows and manage the relationships between them

    DataContext db = new DataContext();
    
    Questionnaire q = new Questionnaire();
    
    q.UserId = 1234;
    
    Feedback f = new Feedback();
    
    f.Questionnaire = q;
    
    db.Feedbacks.InsertOnSubmit(f);
    
    db.SubmitChanges();
    

    A great place to start is with Scott Gu’s introduction on his blog

    http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx

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

Sidebar

Related Questions

I'm building ASP.Net MVC application kinda Game which deal a lot with online users
I'm building an application which (currently) consists of one web application (ASP.NET MVC) and
We are building an ASP.NET MVC application which will be deployed behind a hardware
I am working on an ASP.NET MVC project which allows users to construct arbitrarily
I am having a ASP.net web application which is hosted in an internet server.
We are building asp.net application in which we want to log the received data
I’m building an ASP.NET application, which will create Windows accounts and groups on the
I'm building an ASP.NET web application, and all of my strings are stored in
I'm building an ASP.NET MVC application with a form that needs validation. The majority
I'm am building my asp.net web application using MVC (Preview 5), and am also

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.