What does this line of code do? I'm relatively new to C# and I've been trying to figure it out by reading about TryParse and Request.Form, however, I think a more comprehensive explanation would help me.
int.TryParse(Request.Form["yearhidden"], out year);
TryParseis taking the value fromRequest.Form["yearhidden"]Request.Form["yearhidden"]is a form field in your html calledyearhidden.TryParsethen attempts to parse it into an integer value. It returnsTrueif it was successful,Falseif not.The value is stored in the variable
year