Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Aim: need to fetch the employee details on the screen by taking Emp_ID as an input.

Can anyone please help me in this?

1) i should create an EF model for that table.
2) i should write a stored procedure for fetching data with the primary key Emp_ID.
3) we have a Table EmpDetails like below

Table EmpDetails:

Emp_ID(pk) F_Name L_Name Email_ID Mobile_Num
123456 Sunil Kumar sunil.Kumar@wipro.com 1111111111
222222 Ravi Teja ravi.teja@wipro.com 2222222222
333333 Pavan Kumar pavan.kumar@wipro.com 3333333333
444444 Arun Kumar arun.kumar@wipro.com 4444444444

4) i need to create a screen like

Browser Screen:

Emp_ID : ______ GetDetails(button)
F_Name : ______
L_Name : ______
Email_ID : ______
Mobile_Num : ______


In the above screen when user gives an Emp_ID and clicks the GetDetails button then all the details of that employee should populate on the screen in the respective text boxes of the variables.

What I have tried:

I have created Table and EF but dont know the further steps
Posted
Updated 18-Jul-18 20:32pm
Comments
F-ES Sitecore 18-Jul-18 10:27am    
Your question is basically "How do I write a website?" You can't learn some a broad technology by asking questions on a forum. Get a book on MVC or at least go through a tutorial like this one

https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/mvc-music-store/mvc-music-store-part-1

That will take you through the basics such as getting data from a database and showing it.

1 solution

You need to start learning the basic first and know how stuff works, especially the request and response thing in the stateless world of web.

If you are new to ASP.NET MVC, I'd recommend you to refer my series of article here: ASP.NET MVC 5: Building Your First Web Application - Part 1[^]

You can also head over to the official docs to learn ASP.NET MVC: Learn | The ASP.NET Site[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900