Skip to main content

All Questions

0 votes
0 answers
45 views

How to preserve large database query results on the server for future processing

I have an ASP.NET Core Razor pages application that displays data in a Javascript chart. In some scenarios, this chart can have up to 1 300 000 datapoints / database rows. Depending on the selected ...
kj49's user avatar
  • 45
0 votes
1 answer
45 views

How can I render a Razor Page (PageModel) to HTML?

As weird as may sound, is it possible to render a Razor Page (a PageModel derived class) to Html? To give you an idea of why I'd need this, I'm looking for ways to try nest Razor Pages. For example, ...
WriteEatSleepRepeat's user avatar
0 votes
1 answer
64 views

DateTime format not showing correctly on iPhone in ASP.NET web application

I have a razor pages web application that shows DateTimes throughout the application. Everything works great on a desktop browser at all media sizes (including mobile). But when I view the application ...
kj49's user avatar
  • 45
0 votes
2 answers
40 views

ASP.NET [PageRemote] did't work with class. Why?

This is ASP.NET Razor Pages Project with ASP.NET Identity Registration Page (.NET 8). Email checking (PageRemote) works fine, but only if the Email property is not a member of the Input class (...
UNRE's user avatar
  • 71
0 votes
1 answer
85 views

Collocated Javascript files fail to load when ASPNETCORE_ENVIRONMENT set to Production

In a .NET 8 razor pages app, when I switch my ASPNETCORE_ENVIRONMENT environment variable to Production, my app works perfectly normally except that it does not load javascript files that aren't ...
kj49's user avatar
  • 45
2 votes
1 answer
66 views

What is the most appropriate default string value for a [Required] data annotation? [closed]

I'm learning model binding and validation for C# .NET 8 Razor Pages. I set up a simple input model to test validation (from ASP.NET Core Razor Pages in Action, Mike Brind): public class ...
canyon's user avatar
  • 33
0 votes
1 answer
53 views

How to initilize a class when the page is loaded. (ASP.Net Core (Razor Pages))

I am having an issue with my code where my OnGet() method isn't being called when the page loads. Now I may be wrong on how the OnGet() method is supposed to work but I cannot seem to figure out at ...
kado-kliewer23's user avatar
0 votes
2 answers
35 views

New Web application is styled by non-existent file

I've just created a new ASP.NET Core application. Trying to sort out my styles, I see a number of styles that are affecting my site's appearance, and these styles are in a file called: /...
Jonathan Wood's user avatar
0 votes
2 answers
771 views

Runtime Compilation of Razor Pages Does Not Work .NET 8 VS2022

I am having a hard time enabling runtime compilation of Razor pages under IIS v10.0, using Visual Studio 2022 17.8.8, .NET 8.0.103 (Windows 11). I have followed the instructions at https://learn....
Optimax's user avatar
  • 1,584
0 votes
1 answer
76 views

Publishing .Net Core Blazor Web Assembly Client-Server Project

I have developed the Blazor Client Server Web Assembly project using dot Net Core 8.0 using C# and found running successfully on the server by push the published files but did not find any .razor ...
Manoj's user avatar
  • 11
0 votes
1 answer
32 views

Input type="file" for each record within a single form is always null ASP.NET MVC Razor

I have a form that based on various options such as order cost, etc.., will generate a list of required documentation. This list would allow the end user to upload the appropriate file and then click &...
user3275950's user avatar
0 votes
1 answer
124 views

Logging in issues in Razor pages

I have a problem with logging in. Before that, I created a Register page, and it works fine, it inserts the user into the database. I have been using Identity for logging in. When I try to log in, I ...
Ilija Pavlović's user avatar
0 votes
1 answer
84 views

ASP.NET Core razor pages - generate route conditionally with asp-route-

I've implemented routing based localization for my asp.net core project (.NET 8). Basically, these requirements are met: when the root is requested ( path = '/' ) the CultureInfo.CurrentCulture is ...
AlexB's user avatar
  • 4,413
1 vote
1 answer
358 views

Publish ASP.NET Core Razor Pages

Can't find a way to just publish a single cshtml page (no code-behind cshtml.cs involved). It feels like I'm missing something. This should be a super common thing to do. So, when I choose to publish ...
yehui liu's user avatar
0 votes
2 answers
52 views

Razor checkbox stops working when adding an ID css selector

I'm trying to wire up some jquery to retrieve the state of a checkbox. I'm finding that adding an ID type css selector to my check box disables my ability to turn it's value on or off. No jquery wired ...
Bill's user avatar
  • 1,111

15 30 50 per page
1
2 3 4 5
7