radio and date problem mvc

Harun Ergün 260 Reputation points
2023-05-12T09:15:17.5266667+00:00

User's image

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Viorel 125.7K Reputation points
    2023-05-12T09:42:53.9733333+00:00

    If model.Gender is an integer and form["Gender"] is a string that contains the corresponding integer, then try this: model.Gender = int.Parse(form["Gender"]).

    In case of dates, try model.LisansBaslangicTarih = DateTime.Parse(form["LisansBaslangicTarih"]) but also give details or examples about these values.

    Show the error messages too.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.