Questions tagged as 'asp.net-mvc'

2
answers

Field only records the date and the part of the time is "zeroed"

I have this piece of code in my view. <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de Agendamento", htm...
asked by 11.11.2015 / 13:25
1
answer

call a locally designated variable

I need to call a variable that is empty, but how do I do it? I created the following code public ActionResult Index() { cliente cliente; try { cliente = db.cliente.find(id); //etc...
asked by 30.03.2016 / 15:51
1
answer

checkbox + Model + Controller. How to pick the selected lines?

I'm sent my model to a view and loaded the data into a table where I include a checkbox for each line. The user will select the items of interest to be later recorded in the database. My question is right on this point. How do I send th...
asked by 01.10.2015 / 00:04
1
answer

Multiple modal bootstrap returning always the same content

I'm developing an asp.net mvc application, in one of the pages of the site I call several modals of the bootstrap one on top of the other, however, when already has a modal open the new appears with the same content as the old, follows code snip...
asked by 03.07.2015 / 03:04
1
answer

JQuery - Tie inside a DIV

Hello, good morning. Simple: I'm giving a For a div: <div class="Laço"> <div class="ItemLaco"></div> <div class="ItemLaco"></div> <div class="ItemLaco"></div> </div> Now I need...
asked by 22.06.2015 / 07:34
1
answer

Difficulties in feeding a TextBox and a ComboBox with jQuery

I have no difficulty in passing any value from my View to my controller via jquery. Now the opposite can do nothing. I tried this way: $('#meutextbox).val() = data.minha_result_da_controller.meu_campo; So nothing. $('#meutextbox)...
asked by 29.10.2014 / 23:26
1
answer

ASP.NET MVC 5 Form Can not Access Model Properties

I'm starting in ASP.NET MVC, following tutorials and handouts on the internet I created a study project and I have some doubts. Well, first I created a following class structure: > Acesso -> Possui informações de identificacao(Login e...
asked by 24.10.2014 / 13:55
1
answer

Property is coming as Undefined

In the controller I have a lambda that returns me three fields. When I squeeze in jquery it tells me that the property is undefined. I think that's the way I try to get value. Can someone help me there? controller: [HttpPost] public JsonRes...
asked by 05.11.2014 / 17:51
3
answers

How popular DropDownListFor with information from a foreign key?

I have these two classes and I need a DropDownListFor with the information of the ModeloVeiculo classes, and this DropDownListFor will be done in create.cshtml of class Veiculo , I believe the correct question would be, how to loa...
asked by 29.08.2014 / 03:21
1
answer

Is DAL class required for database connection?

Do I need to create a file for bank connection? According to a professor of a colleague of mine it is necessary to have this DAL class to make the connection with the bank. But the book I'm basing on does not say anything. Is the mdf file...
asked by 05.09.2014 / 22:35