Answer to Question #200943 in C# for AWAIS

Question #200943

Create Product Detail form and perform CRUD using Entity framework model first approach. 

Database Colum’s.

-ProductId

-ProductCatagory

-ProductName

-ProductPrice

-ProductQuantity


1
Expert's answer
2021-05-31T05:38:52-0400
@model Example3.Models.Employee  
  
<h3>Are you sure you want to delete this?</h3>  
<div>  
    <h4>Employee</h4>  
    <hr />  
@using (Html.BeginForm())  
{  
    @Html.AntiForgeryToken()  
    <dl class="dl-horizontal">  
        @Html.HiddenFor(model => model.EmpId)  
        <dt>  
            @Html.DisplayNameFor(model => model.Name)  
        </dt>  
  
        <dd>  
            @Html.DisplayFor(model => model.Name)  
        </dd>  
  
        <dt>  
            @Html.DisplayNameFor(model => model.Address)  
        </dt>  
  
        <dd>  
            @Html.DisplayFor(model => model.Address)  
        </dd>  
  
        <dt>  
            @Html.DisplayNameFor(model => model.Email)  
        </dt>  
  
        <dd>  
            @Html.DisplayFor(model => model.Email)  
        </dd>  
  
        <dt>  
            @Html.DisplayNameFor(model => model.MobileNo)  
        </dt>  
  
        <dd>  
            @Html.DisplayFor(model => model.MobileNo)  
        </dd>  
  
    </dl>  
  
        <div class="form-actions no-color">  
            <input type="submit" value="Delete" class="btn btn-default" /> |  
            @Html.ActionLink("Back to List", "EmpDetails")  
        </div>  
    }  
</div>  

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS