I have this code in my cshtml file
<div class="grid_19 box-resultado">
@{
string
nm, dia, mes, ano, sexo, numpassaporte,
diavalidade, mesvalidade,
anovalidade, paisemissao, dados = "";
.......
I need to declare a variable int
, whose value comes from a field in the form. This is the field in my form.
<div class="grid_5">
<input id="txtTesteQdePass"
type="text"
name="txtTesteQdePass"
class="grid_4 required"
placeholder="Entre com a qde de passageiros" />
</div>
How do I pass the value of txtTesteQdePass
to this variable?