forums.asp.net forums.asp.net

How to return the same child List with different condition in the same parent?

Hi I'm calling tow partial views of the same model at a parent one, But I want to call every one with a different condition of the other. The parent Model: public class Mobiles { public int Id { get; set; } public string SerialNo { get; set; } public string Notes { get; set; } public IList<MobileRuins> MobileRuins { get; set; } = new List<MobileRuins>(); public...

forums.asp.net forums.asp.net

Default Validation Not Working

I am working on my second ever input form using ASP.Net core. I have added the validation scripts just the same as the first. Validation on the first one still works great, but it does not work at all on the new form. I found this out when clicking my button under circumstances that should have resulted in a bunch of errors since I did not fill out any inputs or select any values. Instead I get an error about trying to insert a null...