protected void btnSave_Click(object sender, EventArgs e)
{
List<ProdutoAmortizacaoCreditoDias> aDay = new List<ProdutoAmortizacaoCreditoDias>();
ProdutoAmortizacaoCreditoDias ee = new ProdutoAmortizacaoCreditoDias();
if (ProcessingType == 1)
{
ee.Dia = this.txtDay.Text;
}
else
{
ee.Dia = this.lblDay.Text;
ee.FromProductID = this.hdnSourceID.Value;
ee.ToProductID = this.hdnDestinationID.Value;
}
The error is in:
ee.Dia = this.txtDay.Text;
Error:
Can not implicitly convert type 'string' to 'int'
I realize that you can not convert from string
to int
.
How can I get around this?