Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
57 views

Previously, in .NET 9 and lower, we could use RazorRuntimeCompiliation to implement embedded views in assemblies. services.Configure<MvcRazorRuntimeCompilationOptions>( options => { var ...
StarCat-At-CTC's user avatar
1 vote
1 answer
86 views

I've been trying to setup roslyn.nvim with rzls.nvim on my neovim for a while to work with .NET, C# and Blazor. But I've been facing some frustrating problems, I'm using WSL Ubuntu 24.04, a neovim ...
Carlos Saraiva's user avatar
-2 votes
0 answers
57 views

I am using MudBlazor's MudDataGrid, which functions very similarly to Blazor's QuickGrid. The grid's contents are determined by a RenderFragment parameter called Columns, which contains a list of ...
AAM111's user avatar
  • 1,245
0 votes
1 answer
86 views

There are two pages in my app: Page1.razor (home) and Page2.razor. There is no problem rendering first page. But when I navigate to second page, there is flicker problem. I put 1000 ms sleep to better ...
shmowzow's user avatar
0 votes
0 answers
53 views

I have an ASP.NET MVC application, that uses the following package ActionMailer.net This has been going beautifully for many years, but lately we have been hitting issues with the mail servers we have ...
Crudler's user avatar
  • 2,316
-1 votes
2 answers
92 views

I want to use gorazor a viewengine written in go that uses razor-Syntax. They provide an example which i tried to understand and adapt. What is working I want to iterate over a slices of movies and ...
surfmuggle's user avatar
  • 6,040
-3 votes
1 answer
77 views

I get the error, There is no argument given that corresponds to the required parameter 'e' of 'AddContributor.OnPayerIdChangedAsync(ChangeEventArgs)' This is the pertinent area of blazor markup: <...
Michele's user avatar
  • 3,936
1 vote
0 answers
87 views

Summary: I want to create a new scaffold item for Visual Studio in my Razor app so that I do not have to edit every CRUD page to use my custom libraries. I have spent the last 2 days letting ChatGPT ...
Mike_Matthews_II's user avatar
1 vote
0 answers
51 views

I'm working on an ASP.NET Core MVC project in Visual Studio 2022. Lately, I keep seeing these warning messages at the top of the editor: Feature 'Razor Diagnostics Feature' is currently unavailable ...
Anhh Phapp's user avatar
1 vote
1 answer
95 views

Opened a blazor project for the first time in a while and suddenly no code or components are recognized (even on newly created projects): When I hover over components no auto-completion suggestions, ...
zhrgci's user avatar
  • 716
3 votes
4 answers
141 views

I am writing a Blazor component and noticed something unexpected. In my Razor code, I use a foreach to loop over a list, and inside the Click event handler of a RadzenButton I declare another foreach ...
Colin's user avatar
  • 41
0 votes
2 answers
119 views

I'm trying to use a custom 404 component in a Blazor Server app with this router setup: <Router AppAssembly="@typeof(App).Assembly" @rendermode="InteractiveServer"> <...
SDG6's user avatar
  • 103
2 votes
2 answers
139 views

(With Visual Studio 17.14.13) Steps to reproduce (sorry this is a bit long but these are the fewest steps I could find): From the command line, create the solution folder: md test1 cd test1 Create ...
Matthew Watson's user avatar
1 vote
1 answer
127 views

I started a project as .NET Minimal API - no UI whatsoever. Then I needed to add a visual tool for the API, to show what the service is doing. For UI I wanted to use Razor pages and components, as it ...
Sten Petrov's user avatar
  • 11.1k
1 vote
1 answer
51 views

I have a simple project where the start page shows a list of books. How to make the same page, but with display as XML? Controller method: public IActionResult Index() { // stored procedure ...
Garp's user avatar
  • 267
1 vote
1 answer
58 views

I have an ASP.NET Core Razor C# app. In the _Layout.cshtml file, I have anchor tags to launch various pages in the form of a menu. Here is an example: <a class="nav-link text-dark" asp-...
OMS Master's user avatar
1 vote
0 answers
36 views

I have following AutoLoginMiddleware in my intranet razor page application and want to modify the middleware to redirect to SessionExpired page purposedly once it times out after 30 min (auth cookie ...
zbx888's user avatar
  • 23
0 votes
3 answers
67 views

I have an ASP.NET Core MVC web application. In _layout.cshtml, I have the following code, but it doesn't drop down in the menu bar it shows "manage" with a down arrow next to it below is the ...
John Finch's user avatar
0 votes
2 answers
106 views

This is a follow up on Cannot compile a Razor document. I get several errors while compiling a Razor content (not a file). The code is like this: var content = File.ReadAllText("RazorComponent....
Ricardo Peres's user avatar
0 votes
1 answer
68 views

So I am trying to do what Telerik can do in their code for the Jquery version but it's not working. See below: I am trying to do a pretty simple just list of strings but there are about 80 of them ...
djangojazz's user avatar
  • 13.2k
0 votes
1 answer
60 views

I am trying to compile a Razor document for which I have the contents, not the file. Here are my steps: var content = File.ReadAllText("RazorComponent.razor"); var document = ...
Ricardo Peres's user avatar
0 votes
2 answers
65 views

I know there are many questions similar to this, but I'm not sure how to implement in my case. In my razor page, I have a @foreach loop that creates several divs next to each other. Since the width's ...
fdkgfosfskjdlsjdlkfsf's user avatar
1 vote
0 answers
54 views

I have an app where I want to centralise a notification service. With hardware sending out updates of it current status as it changes. There are a number of separate components which need to react to ...
Matthew Flynn's user avatar
1 vote
0 answers
75 views

I can't figure out why if I assign an empty string in the "if" block, everything works and the string and field are updated.But if I remove the space at the end, also changing the variable, ...
PeacefulWarrior22's user avatar
0 votes
0 answers
43 views

I am unable to configure a select dropdown to display the value of the model property. I am working from scaffolded pages where i need to use a different control than what the scaffolder chose. I am ...
tonyatl's user avatar
  • 21
1 vote
1 answer
158 views

I am using LaTeX for writing a thesis, including the package minted to highlight code. In my case, it is Razor code, which means a mixture of html and C#. The following code is an example for my ...
Manuel's user avatar
  • 125
0 votes
0 answers
42 views

The conditional tooltip is not working on kendo UI Grid column. The following code is not applying the condition for title and instead showing the whole text '#= (!IsSynced && !AddressNickname....
user1263981's user avatar
  • 3,157
1 vote
1 answer
76 views

I'm trying to understand how input validation works. In the HTML below, btnconfirm triggers the validation errors and resetForm resets the form. resetForm clears the input boxes, but doesn't clear the ...
fdkgfosfskjdlsjdlkfsf's user avatar
1 vote
1 answer
66 views

Razor components are normally loaded from .razor files. Behind the scenes, they implement the IComponent interface (or one of its implementations). What I'd like to know is, can we build a Razor ...
Ricardo Peres's user avatar
0 votes
0 answers
26 views

The cshtml for my modal dialog has two input forms. When I click on "Submit" the required attributes for the input forms are working since the ajax call is not invoked unless both inputs ...
fdkgfosfskjdlsjdlkfsf's user avatar
1 vote
2 answers
195 views

This has been a slow step-by-step process for me, but I'm getting there. My modal popup has two input forms that need to be filled out before the ajax call is executed. I've tried a few options, ...
fdkgfosfskjdlsjdlkfsf's user avatar
2 votes
1 answer
77 views

I'm learning how to call C# code from a razor page with AJAX, so please bear with me. In the html, I create a container of divs based on a foreach loop. The divs are created correctly and the modal ...
fdkgfosfskjdlsjdlkfsf's user avatar
0 votes
2 answers
60 views

I've been searching for a way to increase the width of the modal popup in my cshtml, but haven't been able to. I tried the suggestions in this SO question, but none worked. Here's my code. Doesn't ...
fdkgfosfskjdlsjdlkfsf's user avatar
0 votes
1 answer
47 views

So I've been learning asp.net core and razor, and it's been awesome. I finally created the div structure bound to my sql data, and that was pretty cool. My next step is to display a modal popup when I ...
fdkgfosfskjdlsjdlkfsf's user avatar
0 votes
5 answers
113 views

I'm learning how to use razor, so please bear with me. I'm trying to create a simple grid that shows our products. Each row will display several products, and each product will display the name, the ...
fdkgfosfskjdlsjdlkfsf's user avatar
0 votes
0 answers
49 views

I have the razor page (with MudBlazor) with a MudTable at the top. The table displays . Beneath that, I have a grid of MudDropZones, rooms as columns and roles as rows. I called it . So a person has a ...
Spufi's user avatar
  • 21
0 votes
0 answers
29 views

I have a WebApi and Razor frontend project (both using .Net 8.0). I'm trying to learn to implement authentication using JWT and cookies. As of now it is working well: Login on my razor website, which ...
Baldwin Salcedo's user avatar
0 votes
1 answer
83 views

I have a datatable in Razor Project with rows containing id, name, title, parent, and other fields. I need to bind a JavaScript array dynamically, but I tried this code and got an error. Please help. ...
test testb's user avatar
0 votes
0 answers
54 views

I am working with jQuery datatables, but the datatable is always empty when the page loads. On inspecting the network tab, the request returns an empty response but when debugging the controller ...
Adam Lukman's user avatar
1 vote
1 answer
126 views

I want to create a test website for recording a company's information. After running the software and entering three data entries, everything goes well. However, after registering the fourth data ...
Abozar Nazari Zohan's user avatar
0 votes
0 answers
28 views

I'm working on an ASP.NET clean architecture project that uses Azure Functions to send emails. The email templates are stored in Services/EmailService/Template/ with each template using @model to bind ...
2gblue's user avatar
  • 1
0 votes
0 answers
42 views

I'd like to customize the way Visual Studio auto formats Blazor/Razor components. Usually, it formats wrapped tags like this: <SomeComponentWithSomeRandomName @bind-Checked="@this.YesConfirmIt&...
Cesar's user avatar
  • 645
0 votes
1 answer
68 views

I'm trying to generate HTML to a string from a Razor component. I use the following code to do that: var html = await _htmlRenderer.Dispatcher.InvokeAsync(async () => { var pv = ...
Erik Z's user avatar
  • 4,822
0 votes
0 answers
55 views

I have .net 9 web app mixing Blazor, Razor and MVC pages. When I use URL with two segments, the InteractiveServer is not working. Following code displays: Server | true @page "/blazor" @...
maddev's user avatar
  • 11
0 votes
0 answers
22 views

I have the following Entity Framework tables: ChildFile: - Id (PK) - ParentId (FK) - FileName (string) - [NotMapped] FileEntry (IFormFile) Parent: - Id (PK) - ChildFiles (ICollection&...
Sky's user avatar
  • 1
0 votes
0 answers
93 views

So I've never been able to get Hot Reload to work with css files attached to razor components. The work around has been that I can run the app with out debugging and that reloads quicker than ...
GarudaLead's user avatar
0 votes
1 answer
136 views

I'm using Blazor with MudBlazor. I'm using the MudTextField very often and have also some validations in some places. Now i would like to create a new component which inherits from the MudTextField ...
Patrick01's user avatar
0 votes
1 answer
62 views

How to pass a parameter to kendo dialog action method? I am trying to pass action_name variable as a parameter to close action method but it is not working. @{ var action_name = "delete"...
user1263981's user avatar
  • 3,157
0 votes
1 answer
103 views

It is possible to collocate a .js file and a related .razor file as described here. Is there a way to collocate a .js file and .cs file in a similar way? I imagine it looking similar to this: ...
innominate227's user avatar
0 votes
1 answer
86 views

I am relatively new to blazor. I have created a razor page with login functionality, that attaches a cookie with a redirect, when login is ok. My test flow: When I run my app, i'll need to show '...
Benny Jørgensen's user avatar

1
2 3 4 5
667