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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:58:16+00:00 2026-05-18T08:58:16+00:00

I got 2 tables :- TableName – Ques QuesID|Ques|QuesAns|QuesTypeID|Active TableName – QuesType QuesTypeID|QuesType|Active Now

  • 0

I got 2 tables :-

TableName – Ques

QuesID|Ques|QuesAns|QuesTypeID|Active

TableName – QuesType

QuesTypeID|QuesType|Active

Now when I add a new question in my code, it first asks for QuesType then Ques and lastly Answer. What I want is that
when new record is added in DB,QuesTypeID column in Ques table should be set according to the value QuesTypeID in QuesType TAble.
Like lets say the QuesType user selects was “general Ques” and this type “General Ques” has ths QuesTypeID as 1 in QuesType Table.
Now what i want is that when new record is selected the column QuesTypeID be set as 1 in the Ques Table.
What changes do I need to make in the following SP ?

ALTER PROC [Admin].[sp_InsertUpdateQues]
(
        @QuesID bigint,
        @Ques nvarchar(1000)=null,
        @QuesAns nvarchar(2000)=null,
        @QuesTypeID bigint=null,
        @Active bit=null
)
AS
BEGIN

        END
END
  • 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-18T08:58:17+00:00Added an answer on May 18, 2026 at 8:58 am

    Reading your question and comments I think you might be confused about the actual code calling the stored procedure.

    1. The SP as written takes in a QuesTypeId, so there aren’t any changes that need to be done to it and instead you need to make sure the calling code is aware of how to get a QuesTypeId from a QuesType.

    2. Now this gets us to the Telerik ComboBox. Each ComboBox Item has two properties, text and value. These two properties can either have the same or different values. The text property is shown to the user and value property is what is sent to the database. Thus, you can set the text property to QuesType and value to QuesTypeId and this is how the QuesTypeId is set.

    The following link from the the Telerik documentation page shows how you can get at both the text and value properties of the selected ComboBox item by using:

    radMenuComboItem1.ComboBoxElement.SelectedText
    radMenuComboItem1.ComboBoxElement.SelectedValue

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

Sidebar

Related Questions

I've got Dim Tables, Fact Tables, ETL and a cube. I'm now looking to
I'm working with a SQL Server DB that's got tables spread across multiple schemas
I've got two tables in my database: Articles and Tags The Tags tables consist
I've got two tables: TableA ------ ID, Name TableB ------ ID, SomeColumn, TableA_ID (FK
I've got two tables that need to be joined via LINQ, but they live
i've got this tables in my database. alt text http://img166.imageshack.us/img166/3133/testdbschemafy5.png With Entity Framework i
I've got two tables. One is Corporations (e.g., one record is for Taco Bell).
I'm using oracle(10). I've got two tables as follows: Table1 (uniq rows): ID AMOUNT
I've got a database with three tables: Books (with book details, PK is CopyID),
I've got MS Access database with linked tables, whenever each table is linked to

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.