0
Guys with a difficulty where I need to take the value of a text input and manipulate it in the aspx page’s Cs. I am using repeater
to add the data to the table, but while trying to pull the input data I am not succeeding...
aspx.:
<input type="text" id="dinheiro" name="dinheiro" />
page.aspx.Cs:
namespace GerencialWeb
{
public partial class ReceitasPeriodicas : System.Web.UI.Page
{
public class Fluxo
{
public DateTime data { get; set; }
public double valor { get; set; }
}
protected void Page_Load(object sender, EventArgs e)
{
double valort = Request["dinheiro"];
List<Fluxo> ListaFluxo = new List<Fluxo>();
ListaFluxo.Add(new Fluxo() { valor = variavel do request ,data = DateTime.Now });
this.rptFluxo.DataSource = ListaFluxo;
this.rptFluxo.DataBind();
}
}
}
Note: The value that enters the input has a function that transforms it into value (Currency): A js Mask. (Even the pure value without Mask, has already been tested and also unsuccessful.). someone has some idea of what to do?
put what you did on the page!
– novic
I edited the . Cs page there!
– Rodrigo Henriques