insert null value when no selected value from ddl
<p>I had ddl which determine gender and user can donot choose any value from ddl so i tried to check if user didnot select any value from ddl inser null value or any value in database i made that but error apear(Procedure or Function 'InsertRegisteration' expects parameter '@Gender_Id', which was not supplied).any one help me</p>

<p>(My Code)</p>

<pre><code> if (DDLGender.SelectedItem.Value[0]!= null )
  {
    command.Parameters.Add("@Gender_Id",SqlDbType.Int).Value=null;
  }
  else
  {
    command.Parameters.Add(Parameter.NewInt("@Gender_Id", DDLGender.SelectedValue));
  }
</code></pre>
