0
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 Edit value txtTesteQdePass
for this variable?
Those lines were missing from the question. <div class="grid_5"> <input id="txtTesteQdePass" type="text" name="txtTesteQdePass" class="grid_4 required" placeholder="Enter passenger qde" /> </div>
– pnet
Did not miss... is because you have to format the question better before sending. You can view the result of what will be sent before sending.
– Miguel Angelo
@pnet you wanted the field value passed at runtime to the q method you created in cshtml @{ string nm .... } That’s it?
– Tafarel Chicotti