Category "asp.net-mvc"

Why crystal report not refresh the parameters automatically?

I am using this code in asp.net to run crystal report : paramField.Name = "@ORDER_ID"; paramDiscreteValue.Value = TXTORDERID.Text.ToStri

Decorator @property on ASP net core like in django

The thing is that like in Django which you can add model properties without changing the model class using the @property decorator. I'm trying to achieve same w

Use C# string as parameter in JQuery tree

Good day. I have a tree in my MVC view, where I can add in nodes like so: <script type="text/javascript"> $('#jstree_demo').jstree({ 'core': {

Pass param with @using (Html.BeginForm FormMethod.Get

@using (Html.BeginForm("testGrid", "Transport", new { id= 3062 }, FormMethod.Get)) { How I can pass the param(id) with [HttpGet] in asp.net mvc without use sub

Entity Framework Core child entities only show up when I debug through code

I'm having this really weird scenario where I have a component in MVC that will call a service to grab all the categories in the database and include its child

Entity Framework Core child entities only show up when I debug through code

I'm having this really weird scenario where I have a component in MVC that will call a service to grab all the categories in the database and include its child

How can I make my database auto update a column when the date in another column reaches the current date?

I have created a asp net core web application that implements an online system of borrowing books from a library. I have created a table with the following stru

Failed to setup dotNet certificate on mac by all means

I am trying to run the Dotnet version 6 app on macOS latest version I searched everywhere, it was always required to install the certificate although I had a va

CS0019 Operator '<=' cannot be applied to operands of type 'string' and 'string' this error occur when we check min !=0 and min <= maxvalue

{ var MinValue = (from mi in db2.PackagePurchaseds select mi.CustomerDetailid).Min(); var MaxValue = (from mi in db2.PackagePurchaseds select mi.

how to migrate global.asax event 'Application_Start' to program.cs on net.6?

I try to migrate an old projet with a console app and a webservice ( both on .net framework 4.6) to a .net 6 console app (I want to suppress the ws and just hav

Changing drop-down-list population into buttons instead

I've managed to populate an MVC Razor with drop-down-lists, but I cannot seem to figure out how to use buttons instead of a drop-down-list have buttons act the

.NET MVC dropdown with dinamic data

I'm learning to use .NET MVC creating an app on Visual Studio. I'm trying to add a dropdown with dinamic data from one of my Models. The idea is that when a "pr

I'm using a html.beginform to when i click in a button i go to a diferente Action, but i need to pass the values that i have inside my model aspnet c#

I'm developng a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside my

Why result.Succeeded return failed in ASP Identity

When trying to add the ability to add a name during registration, an error occurred when logging into the account. When I register, the login is successful, but

Visual Studio does not recognize a referenced assembly?

Opened an old project from years ago. Build fails because Visual Studio (2019) does not recognize an assembly that is clearly there - specifically, Autofac. You

Why does EF insert the same Guid Ids in different fileds?

I've a Page entity dependent on Investor entity as investor creates a page: public class Page { [Required, DatabaseGenerated(DatabaseGeneratedOption.Identit

Fetching data in level 3 of self-referencing / parent-child relationship

I am programming a multilevel menu / submenu in ASP.NET MVC. I have this table: Id Name ParentId ---------------------------------- 1

JQuery - $ is not defined

I have a simple jquery click event <script type="text/javascript"> $(function() { $('#post').click(function() { alert("test");

ASP.NET Core Razor Read related data into table

I am trying to create a asp.net core 2.1 razor website that will load two tables on the one page. Below i have defined my classes ItemMasters and DealMasters. I

Where to Log application info when the application is deployed to Azure

Hi I am new to this but previously, I was using Log4Net successfully to log info and errors. Now when we are migrating to the cloud and hosting the app in Azur