mer_nam hai bulla rakhta hu kula
mer_nam hai bulla rakhta hu kula
CC#
Created by mer_nam hai bulla rakhta hu kula on 1/13/2023 in #help
❔ how to pass multiple arguments in apicall from ajex get url?
86 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 12/24/2022 in #help
❔ how To create a view that can accept range of inputs, for models range for DbSet.AddRange method
37 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 12/20/2022 in #help
❔ facing error while pushing add migration command
10 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/30/2022 in #help
❔ claim type for Id(Primery key) of a Model
4 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/29/2022 in #help
❔ how to use ClaimTypes
3 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/23/2022 in #help
Error Unable to materialize entity instance of type 'IdentityUser'. No discriminators matched the
9 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/22/2022 in #help
✅ error
28 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/12/2022 in #help
❔ class instance creation
can any one tell me what is this method to create an instance of a class 1--> Product product = new();
26 replies
CC#
Created by mer_nam hai bulla rakhta hu kula on 11/11/2022 in #help
❔ Models data is not showing in view with help of ViewData
I have created model and passed its data with ViewData like this- Controller Code--> IEnumerable<SelectListItem> CoverTypeList = _UnitOfWork.CoverType.GetAll().Select( u => new SelectListItem { Text = u.Name, Value = u.Id.ToString(), } ); if (id == null || id == 0) { ViewData["CoverTypeList"] = CoverTypeList; return View(product); } <--- to View--> <label asp-for="CoverTypeId"></label> <select asp-for="CoverTypeId" asp-items="@(ViewData["CoverTypeId"] as IEnumerable<SelectListItem>)" class="form-select"> <option disabled selected>--Select CoverType--</option> </select> <span asp-validation-for="CategoryId" class="text-danger"> </span> <---Model---> namespace BulkyBook.Models { public class CoverType { [Key] public int Id { get; set; } [Display(Name ="Conver Type")] [Required] [MaxLength(100)] public string Name { get; set; } } }
8 replies