Questions tagged as 'asp.net-mvc'

1
answer

How to update the Index of a field using JavaScript in Asp.net MVC

I am creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I'm facing problems since all fields are reordered in the Indexes, except those using the "asp-validation-for" razor ... Would...
asked by 17.10.2018 / 19:55
0
answers

Digital certificate in ASP.NET Core 2.0

I have a project in ASP.NET Core 2.0 where I am generating contracts in PDF, however, I need to sign them with the company's digital certificate A1, only this part is missing to finalize the project. Thanks in advance for the collaboration, I...
asked by 17.10.2018 / 19:33
0
answers

Load one page inside another

I have a layout page where I want to load information into the notifications button. For this, I made an action in the controller to return a PartialView where a query will be made in the bd looking for the information. How do I load this...
asked by 14.10.2018 / 23:59
0
answers

Upload Image and save to Asp.net server

Could friends help me create a function to save the path + image name in the database, and save the image to my server? I am using the model.PhotoName field which is a string to store the path, but I do not know how to upload it...
asked by 10.10.2018 / 22:26
0
answers

Foreign Key No choice in DropDown

Good afternoon! I am implementing a small application like Code First and I have a situation where I need to create a new record in a table, using the primary key of another table. By default, when I generate the controller and views automa...
asked by 10.10.2018 / 22:42
0
answers

SVG to PDF - ASP.NET MVC

I was able to generate PDF, but I could not generate 100%. How do I generate SVG format for PDF without losing information / quality? Followthecodesbelow.CSHTML@{Layout=null;}<html><head>@Styles.Render("~/Content/Site.css") &...
asked by 19.10.2018 / 18:32
1
answer

Need to make a method in the controller to get a model list method?

I have a question if you need and if yes how to do to create the list method in the controller (I'm using MVC) follows the code in the list model: // MÉTODO PARA LISTAR RANKING DE CERTA CATEGORIA public static List<Fornecedor> Ranking...
asked by 09.10.2018 / 15:35
0
answers

How to read an Excel file in an Asp.NET MVC application [duplicate]

I want to display the data that is in excel in my view, and if possible to get it edited     
asked by 06.10.2018 / 01:36
1
answer

Binding a checkbox with ViewModel without using Razor (Asp.net core MVC)

I'm having problems with Razor ... I need to create a checkbox field and do the binding with my viewModel using pure html. I'm not sure how to do this, but I'm not sure how to do this. (fields are being created dynamically ...) <div class="...
asked by 06.10.2018 / 23:40
1
answer

Validate Datepicker that contains only date

I use Asp.Net Core MVC (Razor + Jquery Validate + Unobtrusive). I display in a Datepicker only the date part of a DateTime field through the following code in my ViewModel: [Required(ErrorMessage = "* preenchimento obrigatório")] [DataType(Dat...
asked by 07.10.2018 / 03:39