Bonjour,
Je viens d'ajouter une vue sur la méthode Detail
le fichier detail.cshtml est le suivant :j'obtiens ce message d'erreur lorsque je le lance dans le navigateur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58 @model GestInconsAnnuaire.Models.InformationUser @{ ViewBag.Title = "Details"; } <h2>Details</h2> <div> <h4>InformationUser</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.FirstName) </dt> <dd> @Html.DisplayFor(model => model.FirstName) </dd> <dt> @Html.DisplayNameFor(model => model.LastName) </dt> <dd> @Html.DisplayFor(model => model.LastName) </dd> <dt> @Html.DisplayNameFor(model => model.Connection_ID) </dt> <dd> @Html.DisplayFor(model => model.Connection_ID) </dd> <dt> @Html.DisplayNameFor(model => model.Email_Address) </dt> <dd> @Html.DisplayFor(model => model.Email_Address) </dd> <dt> @Html.DisplayNameFor(model => model.Location) </dt> <dd> @Html.DisplayFor(model => model.Location) </dd> </dl> </div> <p> @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) | @Html.ActionLink("Back to List", "Index") </p>
Merci encore.
Partager