radio and date problem mvc

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

User's image

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,612 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,507 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 118K 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 Answers by the question author, which helps users to know the answer solved the author's problem.