Questions tagged as 'asp.net-mvc'

1
answer

AutoMapper and ViewModel with equal fields

I have a Viewmodel ( UsuarioGrupoViewModel ) where I will show user and group data in the same View. The problem is that both the User entity and the Group entity have the Name field, how do I handle this? Note: I am using AutoM...
asked by 20.01.2016 / 15:03
1
answer

Question with formatted time return asp.net mvc

In the application I have a query that compares the current time of the server with a pre-set timetable recorded in a table: select CAST(HORA_FECHAMENTO AS datetime) as HORA_FECHAMENTO, CAST(CONVERT(VARCHAR(11),GETDATE(),8) as datetime) as...
asked by 11.01.2016 / 04:54
1
answer

DB table not accessible

I have an associative class (User Stream) between User and Stream, where User Stream contains user permissions to Stream, to know who can access a certain stream, I must go to this associative. Problem: trying to do ... db.FluxoUsuario.toLi...
asked by 29.12.2015 / 13:30
1
answer

wkHtmlToPdf - Header and footer on all pages

I'm trying to generate a "report" using the Rotating, but I'm having difficulty for the header and footer to repeat on all pages: This is the sketch of what I've done: Controller using System; using System.Collections.Generic; using Sy...
asked by 28.12.2015 / 15:53
2
answers

Send a list of data in a viewbag and receive a foreach in the view

The query data is correct, but I can not return the data to the view. Controller: var disponib = (from d in db.Disponibilidade join c in db.Catequista on d.CatequistaID equals c.CatequistaID where c.Catequist...
asked by 23.03.2016 / 16:15
1
answer

Pass the value of the DropDownListFor through an @ Url.Action

How to pass the value of the @Html.DropDownListFor selected by a @Url.Action ?, example: <div class="row"> <div class="col-xs-4"> <label>Cliente</label><br /> @Html.Dro...
asked by 26.02.2016 / 17:00
2
answers

Sending Model to Controller via Ajax

I have a strongly typed View with a small form and a javascript function with ajax usage: function emitir () { $.ajax({ type: "POST", traditional: true, url: '@Url.Action("EmissaoRapida", "CND")', data: { mo...
asked by 10.11.2015 / 17:10
1
answer

How to put a form in the _Layout view?

I'm trying to make a website with two languages support. First test I did was put this code inside a view common, the index of my control Home . It worked perfectly. When I put the same code in a partial view...
asked by 28.10.2015 / 18:19
1
answer

How to do a postback (refresh) in MVC

I am new to MVC and am accustomed to web forms and the events of the controls that cause the postback and refresh the page. I need to make this update on the MVC page after a javascript is triggered. In the code below I was able to call th...
asked by 30.10.2015 / 18:35
2
answers

Creation reports ASP NET MVC [closed]

I need to create multiple reports on my system to display the data on the screen and have options to export to Excel and PDF , where do I start? is there any component to help me with this?     
asked by 02.10.2015 / 16:52