1
I would like to know how I can collect a data from View, since I am already using @model System.data.dataset.
@model System.Data.DataSet
@{
ViewBag.Title = "CadastroPorto";
}
I need to collect the data which will be typed in this part below when clicked on the button:
<section class="content-header">
<div class="breadcrumb">
<button type="button" class="btn btn-primary">Cadastrar novo Porto</button>
</div>
<div class="box-body">
<div class="form-group">
<label>Nome do Porto</label>
</div>
</div>
</section>
Do you want to take the data without having a form? your code is just that? how do you want to take this data in the controller?
– Thiago Araújo
Why avoid datatable and dataset
– Thiago Lunardi
@Thiago.Araujo No form is required to traffic data. A good example is if you are using jQuery Ajax or Angular.
– Thiago Lunardi
In fact @Thiagolunardi, my intention was to understand if he was using only the features of c#, in this case, would use Beginform.
– Thiago Araújo
If you plan to use ASP.NET Razor you will need a form. Otherwise, you can do as suggested by colleague Thiago Lunardi and use jQuery or Angular.
– Ana Carolina Manzan
Good evening, In case how to get the data would be indifferent so I did not put the form. For resolution I used Beginform passed by parameter the input contents. I thank all.
– Alexsandro Teixeira