private string? typeOfContract { get { return (string?)ViewState[\"typeOfContract\"]; } set { ViewState[\"typeOfContract\"] = value; } }
Later
You are making it complicated. string is already nullable. You don't need to make it more nullable. Take out the ? on the property type.
string
?