All Questions
Tagged with asp.net-core-3.0 razor
16
questions
3
votes
1
answer
559
views
Return View as String in .NET Core 3.0
I am working on generating HTML to send to a PDF generator and discovered this this question on Stackoverflow. It points to Paris Polyzos and his article. Upon implementing the code in .Net Core 3.0,...
0
votes
2
answers
834
views
Background image for card view isn't displaying
I want to display card views in my web page. The card view should have a background image, and below that there should be the Card title, and again below that there should be some short texts.
Here's ...
17
votes
1
answer
22k
views
How to bind to element from collection/list in Blazor?
I want to bind values to elements from my list in a loop but I cannot find the good solution.
<EditForm Model="@dailyReport" OnValidSubmit="@SubmitDailyReport">
<p&...
5
votes
1
answer
2k
views
Return html as string from rendered/processed Razor Page in Class Library in Core 3
I have a solution with a few projects, where one of them is an Azure Function App, which calls a method in a .Net Core Class Library that is responsible for generating HTML that I can use with the ...
1
vote
1
answer
468
views
Binding a dropdown in ASP.NET Core razor page to ado.net stored procedure
I'm currently in the process of learning ASP.NET core Razor pages and would like some help please.
I would like to create a drop down containing results from a stored procedure. The SP will bring ...
7
votes
2
answers
4k
views
Using RouteDataRequestCultureProvider in asp net core 3.1
Having upgraded from core 2.2 to 3.1 I cannot get RouteDataRequestCultureProvider working fully.
Routing works but razor tag helpers are ignoring the culture and route attributes that use culture.
...
0
votes
0
answers
434
views
Asp.net core 3.0 razor pages - creating a dynamic grid from a list
On my razor page I have a grid of two columns generated as below:
@foreach (var row in Model.MyList
.Select((item, index) => new {item, index})
...
33
votes
7
answers
23k
views
The tag helper 'input' must not have C# in the element's attribute declaration area
We are experiencing the following error when build ASP.NET Core MVC application which is recently migrated from .NET Core 2.2 to 3.0:
The tag helper 'input' (or 'textarea' or any other) must not ...
1
vote
2
answers
1k
views
Visual Studio indicates error RZ1024 on javascript code inside <text> block
Recently I've updated Visual Studio 2019 to the latest version (16.3.8), and changed net core SDK to 3.0.
My project is an asp net core based project. In my index.cshtml file, visual studio is ...
11
votes
3
answers
34k
views
How do I pass data between Razor components on the same Blazor page?
I have this Blazor page
@page "/bearoffdata"
@using BlazorBoinq.Components
<h3>Bearoff Data</h3>
<Position_Hex_IdPair />
<PositionData />
@code {
}
with these ...
6
votes
2
answers
5k
views
Rendering dynamics views in Razor (chtml), How to add a FileProvider to razor in asp.net core 3.0?
I am migrating from asp-net core 2.2 to asp-net core 3.0, I was using this block to define my File Class Provider, as you know this is used to create dynamic razor views (dynamic cshtml), my problem ...
23
votes
4
answers
20k
views
Is live reload with in-process aspnet core 3 possible?
I recently upgraded an .Net Framwork AspNet MVC app to a AspNet Core 3 MVC app and I'd like the ability to change a view, save, and refresh my browser window to see the changes. Now it appears I have ...
4
votes
1
answer
1k
views
Creating Razor Class Library with TargetFramework to .net core 3 throws errors
I am creating an ASP.Net Core 3 pre-release 9 MVC app and I want to create some Razor Class Libraries (RCL). When creating a RCL from the template it will default to targeting netstandard2.0 which is ...
6
votes
2
answers
3k
views
Putting Views and Controllers in a different project than the ASP.NET Core Web app
I am trying to split up my ASP.NET Core 3.0 pre-release 9 MVC app into different projects. For example, I’d like to have everything related to one subdomain go into a project called Website.SubdomainA ...
0
votes
1
answer
51
views
Is there short way to render CSS files by culture?
Is there a way to tell .NET Core to render a rtl.css file by culture in one place for all pages, instead of wrapping every page that contain rtl files with an if condition?
<environment include="...