.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Insert update delete in mvc using entity framework

Posted By:Daniel Bhagathsingh       Posted Date: December 30, 2013    Points: 40    Category:    URL: http://www.dotnetspark.com  

Details.cshtml
 

@model MvcEntityNew.Models.STUDENT_DATA

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>STUDENT_DATA</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SId)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SId)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.S_NAME)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.S_NAME)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.S_AGE)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.S_AGE)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.S_GENDER)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.S_GENDER)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Departement.Departement_Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Departement.Departement_Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.COLLEGE)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.COLLEGE)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.PLACE)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PLACE)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.SId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend