Skip to main content

All Questions

0 votes
1 answer
34 views

dropdown MVC don't keep focus for selected option

I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option: @{ ViewData["Title"] = "Index"; IsOpenFilterState ...
Maciek's user avatar
  • 171
0 votes
2 answers
115 views

Creating a custom component in Blazor Server

I want to create a component that enables users to **autocomplete **from a list of plaintiffs, in addition to allowing them to **create **a new plaintiff if **no results **are found. I know that there ...
nebula79283's user avatar
0 votes
0 answers
15 views

How do I get meaningful error messages from a view page in an MVC app?

I have this boilerplate code in one of my views in an MVC app: <form enctype="multipart/form-data" method="post"> <dl> <dt> <label asp-...
ChristianOConnor's user avatar
0 votes
0 answers
16 views

how to call a website aspx project in one folder from an MVC project from a cshtml, controller method or javascript within mvc project

I have an aspx website project folder. I converted it to a web application. However, the web app dll is empty because aspx files seem to run at runtime, therefore the web app dll is empty. That’s one ...
iqworks's user avatar
  • 445
1 vote
1 answer
128 views

How to error handle a Razor Page Form OnPost

I created a very basic Razor ASP.NET project and a test/experimental form that generates simple elements. It generates over a 1500 elements. On Form Post I have a public IActionResult OnPost method ...
Mark C's user avatar
  • 738
-1 votes
1 answer
41 views

multiple use of javascript function for different dynamic css Ids

I have a UI FRM page where users can add as many New sections as much as they want and also inside those sections, he can add many resources he wants and also he can change the order of resources ...
Shraddha Singh's user avatar
0 votes
1 answer
199 views

grid.js Grid & ASP.NET Core 6.0 MVC add date filtering min and max value

How to create date filtering in ASP.NET Core MVC using Razor with grid.js grid? The scenario is: render grid.js grid. But will create a date controls with button. When button clicked, it should update ...
patnady's user avatar
0 votes
1 answer
25 views

Multi-select list vs Html helper PagedListPager

Using MVC EF. I'm trying to get a multi-select list to work with PagedListPager. The issue is getting the array from the controller back to the view, and then rendering that correctly so that the ...
Mighty's user avatar
  • 335
1 vote
1 answer
94 views

AJAX returns undefined, failure

I am trying to use the success and failure blocks of the AJAX request. My function is working and I can easily direct to the controller and use my queries to modify my SQL database eg. Everything is ...
Onur Serbes's user avatar
0 votes
0 answers
72 views

I cannot retrieve the name part in the database

I am following a developer but I would like to ask for your help for an issue that I cannot comprehend, when I try to bring the name of the Universities to the University field in my own application, ...
Mehmet's user avatar
  • 27
0 votes
1 answer
37 views

Angular v15+ accessing server-side rendered JSON/JS Object in .NET Core MVC Razor page (.cshtml)

I am trying to access a json object rendered by a .NET Core MVC Razor page in an Angular v15+ SPA. The root code I have is as follows: @page @model Some.ServerSide.Model @addTagHelper "*, ...
SWOmega's user avatar
0 votes
0 answers
32 views

When I send a value to my controller from my razor page, I get null

I want to send data to my controller with @Html.Hidden, but it comes back as null. When I examine the code on the page with F12, I can see that the value is correct. But it comes as null to my ...
krautcez's user avatar
-1 votes
2 answers
37 views

Fill model properties in cshtml

When I declare a model in cshtml with the code below, @model Mymodel; then all properties are empty I would like to display the id and I tried to call a property with: @Model.id but the result is 0 ...
th3answer's user avatar
0 votes
0 answers
38 views

Razor HiddenFor Retain Leading Zeroes

Simple question view model public string Plu { get; set; } = string.Empty; Razor page @Html.HiddenFor(x => x.Plu) In controller model.Plu = "00000000124" Html result <input data-val=...
spiral's user avatar
  • 87
2 votes
2 answers
62 views

CSHTML Overlapping Footer with Side Navigation

The sidebar is overlapping with Footer, as shown in the below image I want the footer to be after the fixed to bottom. My Layout is as below Layout.cshtml <!DOCTYPE html> <html lang="en&...
Hamza Hussain's user avatar

15 30 50 per page
1
2 3 4 5
61