Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/12/2004, 17:17
jsaviola
 
Fecha de Ingreso: abril-2002
Ubicación: Montevideo
Mensajes: 98
Antigüedad: 22 años
Puntos: 0
Form - dropdownlist

Hola gente,
Estoy comenzando con .net y tengo un problema con un dropdownlist.
cuando hago un submit de un form ejecuto un store procedure (Sql Server) y me salta un error de casting al levantar el valor de un dropdownlist.
el código es:


this.sqlComm.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Pai_ID", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Input, false, ((System.Byte)(0)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, System.Convert.ToInt32(this.optPais.SelectedItem.V alue)));

Alguien me puede ayudar a entender por qué está mal?
Gracias,

jsaviola