Skip to main content

Questions tagged [razor]

Razor is a template language used by ASP.NET Web Pages, ASP.NET MVC (since version 3), and ASP.NET Core. It adds a layer of abstraction above HTML generation. It supports seamless transitions between HTML markup and C# or VB code. Transitions between markup and code are indicated by the "@" sign.

razor
0 votes
0 answers
8 views

How to Modify Blazor Radzen css

I am trying to change the line height of the Radzen Data Grid for the entire solution and not having any luck. I have found that I can do this if I add this style section directly to the .razor file, ...
Mark Bonafe's user avatar
  • 1,471
-1 votes
0 answers
63 views

Select and update and view a seat form 200 seats in Cinema App (Book a Seat) [closed]

I'm developing a cinema app in ASP.NET MVC using Entity Framework for my class as a last course project but I'm struggling a bit in how to update a seat in a matrix of 200 seats. I have Movie, Seat ...
Benjamin's user avatar
0 votes
1 answer
47 views

Dotnet EF: Where to put db related Methods? [closed]

I have just started working on a dotnet CRUD application and was wondering where the db methods should go. We have learnt how to use a seperate container class for each model, which has methods like ...
Carlo's user avatar
  • 29
0 votes
1 answer
24 views

Memory leak after adding AddApplicationPart and EmbeddedFileProvider

I have an ASP.NET Core 8.0 application where I want to move some controllers into a module (separate project). To accomplish this I had to update the startup from: services.AddControllersWithViews() ...
Erik Steinebach's user avatar
0 votes
0 answers
23 views

ASP.NET MVC datepicker doesn't show calendar

I'm trying to add datepicker, however when I try to use @html.TextboxFor, the calendar is not popping up. As for EditorFor to input="date" options, they show mm/dd/yyyy format when I need dd/...
DeP.'s user avatar
  • 1
1 vote
1 answer
42 views

Conditional not working in ASP.NET Core 7 Razor view

I have a search function on my site, and one of the options the user has is to select the type of search. So given this example in a view: @using System.Data @model DataSet hello, world <br /> @...
Lisa's user avatar
  • 63
0 votes
1 answer
31 views

How to use razor renderer in .NET 6?

In my .NET 4.8 Web API application, I take an externally received HTML formatted string and convert it to a .cshtml file using Razor Engine, then append it to my page with JavaScript. I do this using ...
Emre Ceylan's user avatar
0 votes
1 answer
58 views

Text input into List in cshtml

How can I turn a text input separated by comma in html into a list of a model that I created and add the values into a sql-table Models public class Person { [Key] public string PersonId { get;...
Trung Đặng Đức's user avatar
-1 votes
0 answers
18 views

2sxc get string resource from another language

In lastest 2sxc, In razor template, how can I get resources from a specified language? For example: The current website is still in en-US language, but I want to get the value of a label of another ...
Thiện Võ's user avatar
0 votes
1 answer
62 views

CSS for bootstrap accordion

So I'm pretty new to css and bootstrap, and have added an accordian into my view page. I have tried to alter the original css but with no luck! <div class="accordion accordian-flush" id=&...
molly1312's user avatar
0 votes
1 answer
32 views

[Blazor Razor pages I am working on the login/register of a website and these error codes popped up: CS0120 and CS0117

I am creating a website/blog with a register/login/logout feature. I am almost done, but having a hard time with the Identities on the .Net8. The scaffolding feature changed and there were no YT ...
Jax Harris's user avatar
0 votes
0 answers
16 views

Footable: How to render same hidden columns multiple times within a single row

I am using row expand feature of footable to show hidden columns within a row (on click). What I have/Issue: I have same column description which is repeating 4 times (as it has 4 services associated ...
Dragut's user avatar
  • 117
0 votes
0 answers
33 views

How to autopopulate fields from razor view page

I have already created a view that displays data in a razor page (5 columns) studentFirstName, StudentLastName, StudentId, CourseId, Grade It also displays a button (instead of default Edit link) ...
user2835586's user avatar
0 votes
0 answers
23 views

How to display text input box over modal in abp framework?

I have the following code which is a modal element. The "NewButton" element is supposed to trigger a text input box in which the user writes the reason for the delete action. The Scripts ...
lilnoob's user avatar
0 votes
0 answers
18 views

Submitting a form from a website to an external Kali Linux server to run a python script

As part of my school project, I am trying to create an automated vulnerability tester website which takes in a user input as URL and this URL will be submitted over to a kali back end, which will run ...
Weijun Tan's user avatar

15 30 50 per page
1
2 3 4 5
2220