Questions tagged as 'asp.net-mvc'

0
answers

Display two ActionResults of the same Controller on the Index page

I'm already displaying a table in the Index, but I want to display another table from the same controller. I created a PartialView called PartCorteCabos() and created a View of it. I tried to make the call using @Html.Partial()...
asked by 19.09.2018 / 13:28
0
answers

Render Image with Rotating Pdf (Asp.net Mvc)

I have an Action responsible for generating the PDF using Rotating ... The action code is as follows: public ActionResult PDFPadrao() { string header = Server.MapPath("~/Views/Relatorio/Header.html"); string customSwitches...
asked by 20.08.2018 / 14:03
0
answers

Configure Fixed Port for Web Designing API Asp.net Core C # [closed]

I would like to know how to configure a standard fixed port for my Web API application in ASP.NET core.     
asked by 20.08.2018 / 21:11
0
answers

The whole data inside the dropdown loads in the get request and in the post does not

I made an edit function that works with 3 different models, the get loads the data of the id that I selected, but at the time of the post, the integers inside the dropdowns come with the attribute 0. Here is my code for evaluation: Control...
asked by 20.08.2018 / 16:34
1
answer

Paged ASP.NET MVC PagedListPager with more than one parameter

I have the following page using x.PagedList @using AspNet.Models; @using X.PagedList.Mvc @{ ViewBag.Title = "Visualiza"; @model X.PagedList.IPagedList<AspNet.Models.Pessoa> } <h2>Pessoas Cadastradas</h2> <div class="ta...
asked by 10.08.2018 / 04:08
0
answers

Object comes null in the query, even if it exists

I have this method in my controller [HttpDelete] public HttpResponseMessage DeletaCidade(int id) { Cidade cidade = banco.Cidades.Find(id); if (cidade == null) { return Reques...
asked by 09.08.2018 / 15:11
0
answers

Pass interface to SignalR Hub

Is there any way to pass an interface as a parameter in the hub constructor? For some operations, I needed to access the repository layer methods through the interfaces. Is there any way to achieve this? Thank you.     
asked by 23.08.2018 / 16:08
0
answers

How to get "x_" from Html tags in outlook with ASPNET

I have the following problem when sending an email with my application, at the time of opening the email, the Outlook provider modifies the template tags by placing the "x _" at the beginning of the name and id attributes of the tag. Hom...
asked by 25.07.2018 / 21:30
0
answers

Relationship between Asp.Net Identity classes

I'm a beginner with Asp.net, I'm making a site with scheduling for a barbershop, using Asp.Net Identity for authentication and authorization of users. However, I am in doubt whether it will be necessary to create a users class to list the inform...
asked by 17.07.2018 / 18:45
1
answer

Aligning fields with bootstrap inline-forms

Good afternoon! I do not have much experience with frontend, but I will have to turn around to finish a project, so I will need a little help. My question is, I have some forms on the screen, and I would like it to be aligned one underneat...
asked by 27.08.2018 / 19:22