1.@Html.TextBoxFor(m => m.emp.name, new { @class = "form-control", @required = "required", @Value =
@HttpContextAccessor.HttpContext.Session.GetString("xyz")})
This is my code in cshtml page where I want to show session value to textbox, but syntax is not working .What will be the right syntax.
Male:@Html.RadioButtonFor(m => m.employee.Gender, "Male", new { @checked = true })
Female @Html.RadioButtonFor(m => m.employee.Gender, "Female", false)
In number 2 radionbutton checked not working
Thanks In Advance
