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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:56:02+00:00 2026-06-13T00:56:02+00:00

I am using entity framework in mvc3. I have a table in which two

  • 0

I am using entity framework in mvc3. I have a table in which two entries are coming from an another table in the shape of drop down list. Like emp_no and emp_name.
Now i want that when i select Emp_no from the first drop down list,the corresponding emp_name
will be selected automatically.

Is this possible ?
Thanks in advance.

  • 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-13T00:56:03+00:00Added an answer on June 13, 2026 at 12:56 am

    Details: It is possible and the task will be much more easier if the emp_no is the value in the emp_name drop down list. If that is the case then the following is the solution using JQuery.

    Solution:

    Jquery

    <script type="text/javascript">
        $(document).ready(function ()
        {
             $('#ddlEmployeeNumbers').change(function ()            
              {
                var employeeNum = $('#ddlEmployeeNumbers').val();
                $('#ddlEmployeeName').val(employeeNum);
              });
        });
    </script>
    

    Alternative: If you don’t have the emp_no as the value in the emp_name drop down then you should do an ajax call for more information go to this website AJAX-calls-with-jQuery-in-ASP.NET-MVC

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

Sidebar

Related Questions

I have a C#-4 MVC3 RC test-application which is using Entity Framework 4. I
I'm using Entity Framework and MVC3, I have following Jscript which I used in
I am using MVC3 and Entity Framework. I have a List on a page
I'm using ASP.Net MVC3, and Entity Framework 4. Employee has an OfficeLocation, which is
I am using MVC3 and Entity Framework. I have a class called User with
I'm using ASP.NET MVC 3 with Entity Framework CodeFirst I have two classes as
I have recently been learning MVC3 using Entity Framework 4.3 and Dependancy Injection so
I have seen many examples using Entity Framework in MVC3 applications, they are very
I have developed a project using MVC3 and Code first Entity Framework 4.0 as
I am using Entity Framework 4 with ASP.NET MVC 3. I have a table,

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.