Código C:
Ver originalpublic DataSet mostrar(String id)
{
SqlConnection conexion = new
SqlConnection("server=.;database=KLO_DEVELOPMENT;u id=sa;pwd=");
SqlDataAdapter adapterEmpleados = new SqlDataAdapter();
SqlCommand command = new SqlCommand("SELECT IDD ,IDPROD FROM SALALMADET where IDD=@paramId", conexion);
command.Parameters.Add("@paramId", SqlDbType.Int, id);
adapterEmpleados.SelectCommand = command;
DataSet ds = new DataSet();
try
{
adapterEmpleados.Fill(ds, "Empleados");
return ds;
}
catch (SqlException ex)
{
Context.Response.Write("se ha producido una excepción: " + ex);
return null;
}
}
Salu2