Get the value of entered by the user in the class property
<p>I have the class defined as below</p>

<pre><code>public partial class School
{
 public StudentDetails StudentDetails;
 private List&lt;string&gt; studentcount;
    public List&lt;string&gt; StudentCount
    {
        get { return studentcount; }
        set { studentcount= value; }
    }
}
public enum StudentDetails
{
    Male,
    Female,
}
</code></pre>

<p>In my code, I have </p>

<pre><code>   if (ctl.Contains("StudentDetails "))
   {
    ctrlStr = ctl.ToString();
    School.StudentDetails = (Request.Form[ctrlStr]);
   }
</code></pre>

<p>error above is cannot convert string to School.StudentDetails  </p>

<pre><code> if(ctl.Contains("StudentCount"))
    {
     School.StudentCount=(Request.Form[ctrlStr]);
    }


   error here is cannot convert string to List&lt;string&gt;
</code></pre>

<p>Can you help me with the syntax</p>
