15,581 questions
-1
votes
0
answers
19
views
wrong get API, CORS, xhr , net::ERR_CONNECTION_RESET [closed]
I'm learning FE, BE; i did download win32/win64 Openssl, configured live server extension to accept https. But it still redirect my BE https to http. And it really caused a
"liveServer.settings....
-1
votes
1
answer
42
views
How to initialize Datatables JS correctly in an ASP.NET MVC 5 page?
I have an ASP.NET MVC 5 web project that I am trying to use with DataTables.js. Despite seemingly following all instructions correctly, the project is still producing errors in the browser console. ...
0
votes
0
answers
74
views
Transport-level error when sending the request to the server(provider: Session Provider, error: 19 - Physical connection is not usable)in ASP.NET MVC5
I am encountering an intermittent issue in my ASP.NET MVC 5 application, where the following error occurs only in production, but not in my development environment (localhost):
A transport-level ...
0
votes
0
answers
26
views
DevExpress ASP.NET MVC 5 gridview - sender keys array not appearing in first data load
My gridview's data gets loaded when the user selects an option to load it. For example, active OR inactive data.
The FocusedRowChanged event gets triggered when I select an option for loading this ...
0
votes
2
answers
106
views
Why is my C# loop in ASP.NET MVC 5 ActionResult throwing this error message [duplicate]
My code:
int total = Convert.ToInt32(form["REC-tr-total"]);
int value = 0;
string insValOutput = "";
if (total > 0)
{
for (int i = 1; i <= total; i++)
{
value = ...
0
votes
1
answer
77
views
Form value not passed to controller
I have a simple application; given a SpecificationName, it will load all attributes for that SpecificationName.
SamplesController:
public ActionResult Create()
{
SampleVM samplevm = new SampleVM()...
0
votes
1
answer
54
views
ASP.NET MVC 5 - Startup not running
I have two ASP.NET MVC 5 applications - one if I put a breakpoint at:
Public Sub Configuration(app As IAppBuilder)
This breakpoint is hit, and the app runs fine - the other it just skips it and loads ...
0
votes
1
answer
655
views
.Net MCV Project is not loading in Visual Studio 2022 community edition
I recently installed Visual Studio 2022 Community Edition on Windows 11 and tried to load a .NET MVC 5 application. However, the project appears as (unloaded) in the solution. When I attempt to reload ...
0
votes
2
answers
192
views
InputMask Sent Wrong Format Even After Unmasked
Im puzzled with this 2 days already.
I have model for a Total field as decimal
[Display(Name = "Harga")]
[Range(0, 999999999999, ErrorMessage = "Harga tidak boleh kurang dari 0&...
0
votes
1
answer
167
views
Getting Syntax error when bundling and minifying Bootstrap 5 CSS Template
I am using a bootstrap 5 template (I have the minified version), which looks like this. This file is generated using gulp:
I want to include this file in ASP.NET MVC 5 bundle, as it adds the cache ...
0
votes
0
answers
43
views
Issue with RadioButtonFor in Index.cshtml - ASP.NET MVC 5
In my Index.cshtml in ASP.NET MVC 5, I have the following code and it works fine.
<div>@Html.DisplayNameFor(model => model.IsEnrolled) Enrolled </div>
But, if I replace the same code ...
0
votes
2
answers
66
views
ASP.NET MVC5: Change Upload Limit for Specific URL
I have a partial View page (ManageFile.cshtml) which is being used to upload and download files based on the current page and id. Since this View is partial, I am able to utilize it throughout my ...
0
votes
1
answer
49
views
Reloading MVC5 Partial View that contains a Document Viewer
I have a partial view in MVC5 that displays a document viewer and a button that lets users upload a document.
I want to be able to reload the contents of the partial view or just reload the entire ...
1
vote
1
answer
42
views
C# MVC5 Routing for both default and Area without adding "Area" in the routeValues
I am unable to keep both routing rules working using
Url.Action("action", "Controller") without adding new { Area = "" } in the link.
Is this possible?
Please help.
1
vote
1
answer
57
views
ASP.NET MVC route by a city then controller and action
I have a basic ASP.NET MVC5 app with a Restaurant class as my model and I am currently using the default out of the box routing.
/Restaurant/Create
/Restaurant/Details
/Restaurant/Index
Previously ...
0
votes
1
answer
34
views
Can't add data into ViewModel DbSet
public ActionResult MojeTeme()
{
var db = new Palindrom.Models.Baza1Entities();
var db1 = new Palindrom.Models.Entities();
var db2 = new Palindrom.VjuModeli.ProfilKorisnika();
var ...
0
votes
1
answer
47
views
OWIN Facebook login throws JsonReaderException
I'm using the good old OWIN Facebook login for years now in an old .Net 4.8 MVC website. Since a few weeks it doesn't work anymore. The Google one is working fine.
I enabled Katana logging and it ...
0
votes
1
answer
70
views
How can I replicate the functionality of IgnoreQueryFilter() in EF6?
I'm currently involved in a legacy ASP.NET MVC 5 project utilizing EF 6. The project demands the selective exclusion of a global filter in certain actions to retrieve soft-deleted data. While ...
0
votes
1
answer
690
views
Create publish zip or nuget for ASP.NET MVC project under azure CICD build pipeline
I am new to Azure build pipeline and some extent I have managed to create a build and publish artifact.
Issue: when build is ready and I am copying artifact and it goes to some weird path which I can ...
1
vote
3
answers
90
views
List returns null model when passing from view to controller
My model is always be null when sent back to controller. I tried many way to solve it but nothing worked. I check the network tap after submit the button and see all values are correct but in ...
0
votes
1
answer
25
views
Value getting lost in ASP.NET MVC 5
One of the values from my webpage is not making it to the controller.
I have an OrderDetailsModel model class:
public class OrderDetailsModel
{
public string SerialNumber { get; set; }
public ...
0
votes
1
answer
286
views
Pass querystring parameter + list of ids as POST to MVC Controller
I'm attempting to pass an id (long) plus a list of ids (array) to a controller action. The best luck I've had is getting the id to pass, but I've never gotten the array to post.
I've gone through at ...
0
votes
0
answers
47
views
ASP.NET MVC 5 - Generate different forms based on selected DropDownList option
I want to generate (or display hidden maybe?) different type of form depending on the selected Option in a DropDownList. What would be the best way to do that?
I have tried having in the base view ...
0
votes
1
answer
202
views
How to implement .NET Core tutorial to .NET Framework?
I am working on a project in ASP.NET Framework 4.7.2 which uses Azure AD and MSAL to access data from server API within my company. However all the Microsoft tutorials are for .NET Core, and there no ...
0
votes
2
answers
64
views
One to One and One to Many Optional Entity Framework
I have a model like this :
public class PortStackingDetails
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public int? ...