Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/07/2010, 16:44
clitoipla
 
Fecha de Ingreso: julio-2010
Mensajes: 19
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Mostrr resultado sin un evento clic

Hola y gracias por el dato, pero aun no puedo ver el resultado una vez que ingreso los datos, lo estoy haciendo de la siguiente manera:

protected void txtTotal_TextChanged(object sender, EventArgs e)
{
int vCantidad = int.Parse(txtCantidadOrdenada.Text);
float vPrecio = float.Parse(txtPrecioCosto.Text);
float vResultado = fTotal(vCantidad, vPrecio);

this.txtTotal.Text = vResultado.ToString();

}


float fTotal(int vCantidad, float vPrecio)
{
return vCantidad * vPrecio;
}