Results for razor
I created ASP.NET Core 7 web app right out of the VS2022 template (no MVC template). No authentication was added. Only high level code in Program.cs. ...
I'm using Visual Studio 2022 asp.net Razor pages project and trying to pass an array from a DataTables.net table of selected records back to .cshtml.c...
I am very new to Blazor, and I'm following the blazor-workshop tutorial. I'm on .NET version 8.0.100 I created the sample project with the counter com...
When I start a .Net 5 Razor application with dotnet BaGet.dll It always says 404 page not found. However if I dotnet run it or execute the BaGet.exe...
I am trying to figure out how to refresh the page from Partial View after updated data, but I am stuck. Here is my index.cshtml page: @page @model Raz...
What does the '\s-]*$" at the end of @"^[A-Z]+[a-zA-Z""'\s-]*$" stand for? Am I right saying it means no white space and numbers allowed? I understand...
I created an Asp Net Razor project in visual studio 2019. I'm learning the technology with some exercises. Specifically, I would like to display on a ...
How can I force a field to have a default value during server-side validation of a razor page? I tried with this example code but it doesn't work: wha...
I'm using Alpine.js (included via CDN) in my ASP.NET Razor Page, but can't make it work. VSCode shows an error: CS0103: The name 'change' does not ex...
I'm building a helper tool for development purposes in .NET 7, to extract data from different data sources to save having to manually write queries. I...
When run web, it running with url http://localhost:5000/. How can I change that url to http://localhost:5000/ABC when starting web and also it will re...
I have an issue replacing the deprecated Microsoft.AspNetCore.Http library in my Blazor Server web app, and was looking for a way to get the IHttpCont...
I declared a Razor page with an optional parameter: [Parameter] public KeyValuePairstring, T>? Value { get; set; } Which I use in the Razor page marku...
I'm working on a Blazor WebAssembly project and I'm trying to customize the behavior of the component in my "Register component". Somehow I can't ove...
I am using Minimal API in ASP.NET Core. I need to return a Razor page. Is there any way to do this? I have added builder.Services.AddRazorPages(); app...
I'm new in Blazor programming and it might be that my question was already answered, but I didn't found an answer solving my problem. I have a Base cl...
I'm trying this solution to use URL among my razor view. but unfortunately I have this compiler error: the name 'Request' does not exist in the curre...
Technical details: VS Enterprise 2022 17.3.2 dotNET 7 Project type: ASP dotNET Core Web App MVC Empty test project, all settings set to default I ha...
If the css is only on one page in razor pages should I still write in in wwwroot or have it only on the page? What is best approach with minimal size?...
I'm using an inline Fetch API script to upload files to a storage server. Here's the simple HTML which allows me to choose a file. "post" class="col-s...
I am using ASP .NET Core, Version 7. On my web app, tenants will be assigned an ID. I want all the URLs on the app to be of the form so that the tenan...
This code has been working just right in a blazor web assembly, embedded in a razor pages page, using .net 5.0 and .net 6.0. I had to upgrade to .net ...
Hello I have an text input field in my Blazor razor page where the user has to give an Input string. I have to evaluate this input string during the u...
Let's say I want to pass in a product card to my partial view. I would like to pass the product model into the partial view as well as some non-model ...
Can we use Tag Helpers in a Razor component? I cannot use Tag Helpers or HTML Helpers in a Razor file. How do I import Tag Helpers? Curent person @Peo...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?