I can't install Asp.Net Core Packages in MVC

I have installed the tool packages but I cannot install the remaining Entity packages. I’m getting an error. Please Help !!! >Solution : First of all, you should check the versions, can you check the current latest version 7> version?

C# MVC read value inside a div using jquery

I am developing an Application in Asp.Net Core MVC6. I have a Razor page that render dynamically object. Assuming I have creating dynamically this two Divs in my page <div id="A1"> <input type="text" id="SearchSSN" /> <input type="text" id="SearchLastName" /> </div> <div id="A2"> <input type="text" id="SearchSSN" /> <input type="text" id="SearchLastName" /> </div> <a href="#" onclick="Search()" class="nav-link… Read More C# MVC read value inside a div using jquery

Using Foreach or another function to reduce the amount of code

please help. I have such a code with Checkboxes. I need to shorten it, namely to go through it through Foreach. If you can shorten it in another way, then please write it.. let FormData = { DisplayName: $("#DisplayName").is(":checked"), Department: $("#Department").is(":checked"), Post: $("#Post").is(":checked"), Phone: $("#Phone").is(":checked"), Location: $("#Location").is(":checked"), Dinner: $("#Dinner").is(":checked") } console.log(JSON.stringify(FormData)); I haven’t really tried… Read More Using Foreach or another function to reduce the amount of code

ASP.NET MVC validation : string starts with 000 and is followed by another 6 numbers

I am validating a string that should be 9 chars long, numbers only and must start with 000. I created the following validation: [RegularExpression("^[0]{3}*", ErrorMessage="{0} must start with 000 and be numeric")] [StringLength(9, MinimumLength=9, ErrorMessage = "{0} must be 9 numb long")] public string Test{get;set;} Is there better way to do it? >Solution : This… Read More ASP.NET MVC validation : string starts with 000 and is followed by another 6 numbers