Skip to main content

All Questions

Tagged with
0 votes
0 answers
45 views

input type="number" won't let me insert negative values (but it does when debugging)

I'm creating a generic form project, the kind of type where you insert a model and the form is generated for you. In order for this to work I now work on a generic input component, which will render ...
Lior Nachmias's user avatar
0 votes
0 answers
18 views

Byte marks in a ASP.NET Core razor view

When I run my app and inspect my HTML in the browser, I see this thing: It doesn't appear in my .cshtml file and it really messes up with my layout(it's the cause for the margin between the heading ...
Alice's user avatar
  • 21
0 votes
0 answers
28 views

How to implement a button in html to toggle between two different views

I am struggling to implement a button on the client side of an html page that would allow the user toggling between two different layouts invoked through corresponding view components. Here is what I ...
Douar Gwenn's user avatar
1 vote
1 answer
45 views

Distribute Remaining Input Percent among n-inputs in JavaScript

I am trying to make a function for the following situation: I have a number of user inputs that accept a number value from 0 to 100 If I entered 100 in input1 then input2 to input-n will not accept ...
Taher's user avatar
  • 593
0 votes
0 answers
11 views

Html Razor - How to hide anchor link if specific div is not present

Currently I have an anchor div with three anchors present. But the #videos-anchor is showing even when we have no video present on the page. <div class="anchor-bar__container"> ...
brianGNE's user avatar
0 votes
0 answers
27 views

HttpPostedFIleBase is always null, but other values come in

I've researched all the other posts like this and I'm still so stuck. I'm trying to post the name, pronunciation, bio, website, and image and everything but the image is coming through - it's always ...
Kattte's user avatar
  • 29
0 votes
1 answer
39 views

Blazor .NET C# can't get input from html <form>

When I try to get input from the user using the html <form> thing, I get the error: CS0103 Der Name "Request" ist im aktuellen Kontext nicht vorhanden. This translates to CS0103 The ...
lune_star's user avatar
1 vote
1 answer
95 views

How can I add a specific css class only to the last Blazor component created dynamically without using JS Interop

I have a couple of simple components that can be structured like a table. Where I want to add borders on a property set to true. The problem I have is that I somehow have to find the last component(...
riki's user avatar
  • 2,309
1 vote
1 answer
65 views

Add default first option as select element when populating select options from an enum field in ASP.NET Core

enum field is defined as: public enum HasSomething { Installed_by_Installer, Not_Installed_by_Installer, Not_Present } I'm trying to add this to options in a select element as following: &...
Xs_'s user avatar
  • 19
1 vote
1 answer
95 views

Why is my form directing to the OnPost method - multiple forms Razor Pages

I have been following the below linked tutorial in setting up a Razor pages with multiple forms. https://www.youtube.com/watch?v=-6PE4p4gUYQ In this tutorial it identifies that, of two forms (Form A ...
PharaohS's user avatar
  • 165
0 votes
0 answers
23 views

Razor view HTML output is different on localhost and server

We have developed UI for our API using razor view. This is how the page looks on localhost: the page on localhost This is how the page looks when deployed: the page on the server As you can see, input ...
Dmytro Piskun's user avatar
0 votes
2 answers
67 views

I don't understand why my layout doesn't show

I'm new to .NET programming and I'm having trouble applying a Shared Layout to a blog page. My project contains the following files: enter image description here I've created a file named _Layout in ...
Lorine Monfils's user avatar
0 votes
0 answers
92 views

Razor page with real-time price data using SSE

I am trying to create a Razor page within my so-called "Server" solution to display some real-time stock prices, using the server-sent event approach. In the end, I am not getting any auto-...
Douar Gwenn's user avatar
-1 votes
1 answer
88 views

Strange attributes appear inside html tags

I'm using ASP.NET Core. I've create a Razor page with HTML markup, and just run it in VS 2022. And I see this: I thought it was an ASP.NET Core feature, perhaps, but I checked my old project - there ...
Alexander's user avatar
2 votes
0 answers
61 views

How to refresh new tab after opening with target_blank

I have a button and in href i have a url. I provide url with a model in razor view. I open it in new tab with target_blank and i want to refresh page after 1 seconds i opened it. I want to refresh it ...
aoiTenshi's user avatar
  • 599

15 30 50 per page
1
2 3 4 5
200