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 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 got this code, I would like to optimize. I basically can add new
I've got the following SQL code which returns the tables in my database, along
I got two tables: comments and commentLikes in the same query i count the
I got two tables Product(Productname VARCHAR(10), Rating REAL) and Review(RatingID INT, Productname VARCHAR(10), Rating
I got two tables in my database: user and call. User exists of 3
I got two tables, one of which is a helper of the other. The
I've got two tables: TABLE A (columns: FirstValue, SecondValue, SeatNumber) currently empty TABLE B(1
I've got 2 tables. The first table is full of entries. The second table
I've got two tables, Products and ProductImages with a one to many relationship between
i've got two tables: members and members_data . They both share the same unique

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.