File->New->Project
Select Project Template as
Internet Application
And Click on Ok Button
And Go App Data (Right Click on it and select add existing item and add any database.
and add any database with extension.mdf
Now, go to model right click on it and select add->new item.
And select ADO.NET ENTITY DATA MODEL
Now Model is created. Build the solution.
Now go to controller Right click on it and select Add.
Add->Controller
And click on Add Button.
And go to Index.cs.html and modify the code as below
And go to Layout.cs.html and paste the following code from bottom to top and write the following code.
Run, and see the output
And click on Details
No comments:
Post a Comment
Thank you for visiting my blog