Questions tagged as 'asp.net-mvc'

0
answers

Save data from several related classes in the same view - Asp.Net MVC

I have a schedule class where I need to save the client data, the time, and the service that will be scheduled. However, the service is saving correctly through a selection in the DropDownList, but the client data and the Schedule are not saving...
asked by 17.08.2018 / 16:52
1
answer

Where does not work when listing all records - Entity Framework

I need to return all records that contain the informed branch using the where clause, but the Entity Framework is returning all records ignoring what is in where . Where am I going wrong? public IQueryable<PessoaGenerico> Ge...
asked by 19.08.2018 / 22:53
0
answers

Variables coming filled in the first ASP.NET MVC request

I have a view / action that uses meto [HTTPGET], when I click on the url for the first time, just to open the view, theoretically it was to be null, but it is coming prefilled. Images of the first requisition that was to come null: Andevent...
asked by 25.08.2018 / 18:30
1
answer

Problem with configuring customErrors ASP.NET MVC 4

I need to set up a generic error page for my site, I have added the following code in web config: <system.web> <trust level="Full" /> <customErrors mode="On" defaultRedirect="~/Views/Error/index.cshtml"> <error red...
asked by 21.08.2018 / 16:49
1
answer

How to reduce TABS spacing with view corners using CSS - Asp.Net MVC

When I insert a tab in my view, there is a very exaggerated spacing with the page borders within the modal. I am using a framework called Remark, but I believe this can be solved with CSS. Does anyone know how to do this? <div class="...
asked by 16.08.2018 / 12:40
1
answer

Make the Bootstrap modal footer display the vertically aligned buttons at the bottom - Asp.net MVC

I have a modal window that is generic and is used to do CRUD operations. I have a grouping of buttons that need to be left aligned and should always be pasted to the bottom of the modal, respecting the borders as the image. At the moment, they a...
asked by 16.08.2018 / 00:21
1
answer

Html.Raw should I use in every application?

Hello everyone in PartialView of my site, I had to put Html.Raw to solve problems with accentuation (even in Head put UTF-8 and in web.config globalization) only with Html.Raw solved, my doubt is I can put in all fields (Title, Description and et...
asked by 14.08.2018 / 18:04
1
answer

How to load fields from the viewmodel dynamically in asp.net core mvc

I have a 1: N relationship between the Person and Contacts classes. In my view edit, I get a viewmodel containing a list of contacts. In my View, I made a for which you should scroll through the contact list and load a contact row dynamically. T...
asked by 30.08.2018 / 00:11
0
answers

Problems with Inner Join in Dapper

I have the following problem when I inner join in 3 in> Dapper does not bring me all the columns of the 3 tables, but only the parent table of my inner join (ie the first table in the query). My classes public class ItemQuesti...
asked by 11.08.2018 / 01:16
1
answer

How to write information (cpf) of an edit with a mask and a numeric field

In the database I have the CPF field of type bigint. In the model it is a long. This is what was requested in the requirement. Well, in the model I will masquerade for a DataType.Text to accept the mask, but when I leave the field (OnBlur) the f...
asked by 12.08.2018 / 18:28