Hi,
I want to Display Username instead of Userid but it should take the Userid Value
I have 2 tables : AspNetUsers and AspNetUserRoles
- ViewData["UserId"] = new SelectList(_context.AspNetUsers, "Id", "Id");
- class="form-group">
- ="UserId" class="control-label">
- ="UserId" class="form-control" asp-items="ViewBag.UserId">
Vinay SinghPosted Apr 1, 2020, 1:06 AM
Harsh ShahPosted Apr 1, 2020, 1:04 AM