Arno
Arno
Explore posts from servers
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
Great, only wasted 1,5 days on it
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
I updated my Visual Code and now it works for whatever reason
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
build error
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
I follow the class example
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
I have no idea why
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
There is not one project that wants to run
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
No description
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
it gives the same result
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
this is the other one
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}

<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}

<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
under movies
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
I couldn't even run it on "Run the app"
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
@page
@model RazorPagesMovie.Pages.Movies.IndexModel

@{
ViewData["Title"] = "Index";
}

<h1>Index</h1>

<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Title)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].ReleaseDate)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Genre)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Price)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Movie) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.ReleaseDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Genre)
</td>
<td>
@Html.DisplayFor(modelItem => item.Price)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.ID">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>
@page
@model RazorPagesMovie.Pages.Movies.IndexModel

@{
ViewData["Title"] = "Index";
}

<h1>Index</h1>

<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Title)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].ReleaseDate)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Genre)
</th>
<th>
@Html.DisplayNameFor(model => model.Movie[0].Price)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Movie) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.ReleaseDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Genre)
</td>
<td>
@Html.DisplayFor(modelItem => item.Price)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.ID">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
No description
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
No description
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
No description
31 replies
CC#
Created by Arno on 12/19/2023 in #help
Creating a new Razor Pages project in .net 6
No description
31 replies