Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
33 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 votes
0 answers
48 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,247
0 votes
0 answers
52 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
-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
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
3 votes
4 answers
140 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
2 votes
2 answers
125 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
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
0 answers
32 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
2 answers
100 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
59 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
1 vote
0 answers
53 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
0 votes
0 answers
39 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
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
65 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
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
0 votes
2 answers
58 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
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
24 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
0 answers
53 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
0 votes
0 answers
24 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
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
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
1 answer
133 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
100 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

1
2 3 4 5
667