Questions tagged as 'asp.net-mvc'

0
answers

In what layer transform Domain into DTO

Hello, in an Asp.Net MVC application the architecture has domain entity classes, DTOs and ViewModels. The ViewModels transformation I make in the controller, so far so good, but at what layer should I make the transformation of domain classes to...
asked by 23.07.2016 / 16:55
0
answers

error while executing view asp.net mvc

When I run the project and call view it is returning the following error: The view at '~/Views/Produto/List.cshtml' must derive from WebViewPage, or WebViewPage<TModel>. View Code: @using Domain.Entidades @model IEnumerable<Pro...
asked by 07.07.2016 / 06:26
1
answer

More efficient code to make a iTextSharp template in ASP.NET MVC?

I just did a project to generate PDF's using the iTextSharp library in ASP.NET MVC (C #), however, I would like to know which code is most efficient and easy to use to have a template that generates PDF using iTextSharp in ASP. I need to be able...
asked by 07.07.2016 / 10:38
0
answers

Window Modal Semantic UI Submit and Validation on Form

I have a modal window using the semantic framework UI, I can give submit calmly using the Helper @ Html.BeginForm it does the validation of 1 field, but the others do not. I need to do this validation via jquery when I submit it by looking at...
asked by 15.06.2016 / 00:48
1
answer

Show DataReader return date in View?

I have a form where I have in View: <div class="col-md-2 form-group"> @Html.LabelFor(x => x.CLIENTEDESDE) @Html.TextBoxFor(x => x.CLIENTEDESDE, new { @class = "form-control", type = "date" }) @Html.ValidationMessageFor(...
asked by 15.06.2016 / 17:34
0
answers

API pagseguro signature with infinite renewal

Hello, I'm having a hard time finding subscription information on the pagseguro API. My problem is this, I see that it has subscription cycle. For example in a subscription of 6 months, that time passed the signing ends. But I would like whe...
asked by 27.06.2016 / 15:39
1
answer

Default Value of Role in a dropdown

I have in my index the users, each user has a Dropdown with Roles, when does Get does not show the value that is by default in Dropdown Controller: public ActionResult IndexGestor(string roles) { //query entre 2 bases...
asked by 13.06.2016 / 16:00
1
answer

Doubt with ViewBag, loading information for editing

I'm having an error, when I go to make a registration, I loaded the information this way: //lista var tbuscarCategoria = new CadastroCategoriaAplicacao(); var listarCategoria = tbuscarCategoria.ListarTodos(); ViewBag.Categoria = new SelectL...
asked by 17.06.2016 / 06:10
1
answer

I created my project, I have been editing every day, and recently from scratch it failed to recognize an existing namespace

I created my project in Visual Studio 2013, I have been editing every day, and recently it has stopped recognizing an existing namespace. The namespace appears in red with the message "The type or namespace 'Models' does not exist in namespac...
asked by 16.06.2016 / 20:29
0
answers

How do I update the dates of a project done in C # asp.net MVC layers?

When creating a Blanck Solution project and creating Class Library projects, in my case, creating 3 projects besides the application type (Application, Domain and Repository) I would like to know if you have how to update all the projects for th...
asked by 04.07.2016 / 19:07