Questions tagged as 'asp.net-mvc-4'

1
answer

JQuery datepicker popup in white

My project is in .NET MVC 4 and I'm having trouble calling the datepicker. It is applied but the popup is small above the field and blank. I want to use it in this field: @Html.TextBoxFor(model => model.DataDesligamento, new { @class = "for...
asked by 04.08.2016 / 19:34
2
answers

col-md-6 is not working in MVC

I created a form using bootstrap.css in the site w3schools.com/bootstrap/tryit.asp with the following code: <div class="container"> <form role="form"> <fieldset> &l...
asked by 09.03.2016 / 19:41
1
answer

ASP.NET MVC: Automapper and NHibernate

Good evening, I have a problem. I'm using nHibernate to connect to my database and I also use Automapper to map my Entities to my ViewModel. But when I select the entity I have several relationships and when I map to the ViewModel it ends up...
asked by 10.10.2015 / 00:42
1
answer

retrieve data from a view table in controller

I have a table that is dynamically generated in View . From the moment the user selects the products in another table, I need to retrieve in the controller all ids and product quantities that are in this table. Here is the jQuery function tha...
asked by 08.09.2015 / 20:17
1
answer

@ Html.Dropdownlist returns null value

ASP.NET MVC4 I have a data dropdown problem of a dropdownlist where the same list correctly the values, but when choosing some value and posting on the page the value arrives as null in the controller. My Domain is like this: Table of Cont...
asked by 06.06.2015 / 02:52
1
answer

Retrieve property of an Anonymous Object C # Razor

I'm working with MVC4 and RestSharp for data access via API Rest, My return is an object of type Object but I can not retrieve a specific property of this object. How can I access the property? Here is the code for the view where...
asked by 23.04.2015 / 15:17
1
answer

Hierarchical Object Filter

I have an asp.net MVC 4.5 C # razor screen typed by a main class: public class ClassePaiDTO { public virtual ICollection<Filho1DTO> Filho1s { get; set; } public virtual ICollection<Filho2DTO> Filho2s { get; set; } //c...
asked by 17.03.2015 / 13:57
2
answers

Initialize object in Asp.Net MVC

I have a class Cidade that has the property Estado of type Estado : public class Cidade { [Key] public int ID { get; set; } [Required(ErrorMessage = "Campo Nome é obrigatório!")] public String Nome { get; s...
asked by 08.08.2014 / 19:09
1
answer

Kendo UI Grid export Excel

I have the following Grid in * .cshtml: $.ajax({ url: '@Url.Action("RetornaJsonGrid", "PacoteLicencas")', type: "post", cache: false }).success(function (json) { $("#g...
asked by 24.03.2014 / 16:55
2
answers

Get the value of an input type = text and play in a variable

I'm using ASP.Net-mvc4] in my C # project in Visual Studio and I need to get the value of input type=text that is in my view , and play in a variable in my controller , but not I figured I'd do it. I would give the example...
asked by 07.03.2014 / 20:40