6 state management techniques for ASP.NET Core MVC

Because HTTP is a stateless protocol, state information is not preserved between requests. This means you must write your own logic to maintain state or find another way to preserve state information. This article will explore some of the most common state management techniques available in ASP.NET Core MVC and how to use them in … Read more

c# – How to show data from DB to Index after merged 3 models in one view in ASP MVC 5?

I merged these 3 model to another class to insert data in one view. congtodien.cs public partial class CONGTODIEN { [Key] public int ID_DIEN { get; set; } public int ID_PHONG { get; set; } public int CHISODAU { get; set; } public int CHISOCUOI { get; set; } public int? THANG { get; set; … Read more

html – Asp.net Core MVC Render Body Problem after Implementing Responsive Side Bar

After implementing the sidebar its fridge my other page and didn’t able to scroll the page in Asp.net Core MVC. I think the problem is coming from the _layout.cshtml file. as it has a container which render my other page. Please help me to solve this problem. Here is My _Layout.cshtm File. The header is … Read more

java – HibernateOptimisticLockingFailureException when saving an entity in Spring MVC with JPA

The bounty expires in 4 days. Answers to this question are eligible for a +50 reputation bounty. FrancescoDS wants to draw more attention to this question. In my Java project (Spring MVC) I have the following entities: public class TariffeBaseComposizioni implements Serializable { private static final long serialVersionUID = 1L; @Id @Basic(optional = … Read more

c# – I cannot store Images in my database? (ASP.NET Core MVC)

I’m looking to create a real estate website. I’m using ASP.NET Core 6 MVC to build my website. I create a Property table and an ImageData table. I used imagesharp for image processing. And I used one to many relationship to store images. I connected those previous mentioned table by using a foreign key. But … Read more

c# – How to edit data in GridView using asp.net MVC?

I am binding data to the gridview from SQL server but having some issues with the Edit. Here is my model code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Data.Entity; namespace Gridview_BugTracker.Models { public class BugTracker_DataHelper { public static List<BugTracker_DataHelper> GetList{get;set;} public string ProjectId { get; set; } public … Read more

asp.net core mvc – Open Specific Tab on Boostrap5 tabs pills – jsscript help needed

I cannot figure out the jscript part to show active the tab and its content based on a variable. Code will be in asp.net core MVC. The view will receive a variable to show which tab should be shown and active. Here is a simplified version of the code I would like to use: (ie: … Read more

c# – How do i fill the html field with date in asp.net mvc?

I am building a Todo list application Model class Todo.cs is as below using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; namespace Todo_Application.Models { public class Todo { [Display(Name =”Item Id”)] [Required] public int ItemId { get; set; } [Display(Name =”Description”)] [Required(ErrorMessage =”Description is required”)] [StringLength(100,MinimumLength =10)] public string Description { get; set; … Read more