Questions tagged as 'asp.net-mvc'

1
answer

Return PartialView with validations for an ASP Modal MVC 4

I have an Index screen, where is the table of registered people, on the same screen I have a new button that calls a Modal (boostrap) like this: <a href="@Url.Action("Add", "Pessoa", new { area = "Gestor" })" class="btn btn-primary" data-to...
asked by 21.05.2015 / 02:01
1
answer

Change property structure at the time of JSON serialization

I have a situation where my HTML form represents a different data structure than the existing structure on the server. To exemplify my problem, I will present a hypothetical situation, to present which solution I need: My class: public...
asked by 19.05.2015 / 20:45
1
answer

How to make a video file available for viewing in the browser as PDF?

How do you make a file available for download and browser viewing? As an example, files of type pdf and mp4 . When I want to make the file available for download, I simply use the following routine: public ActionResult Download(string...
asked by 12.05.2015 / 19:17
1
answer

How to do authentication in MVC application with linq?

I have a project in ASP.Net MVC and I am putting the authentification manually. Everything is going well, but I used as a reference an already ready project that uses the EntityFramework, but I want to use linq for my operations. The problem is...
asked by 28.05.2015 / 13:53
2
answers

How to bring an item list

I need to get a list of ITEMS , with just the Order id. The way I do is this, but it just brings me an Item, I want to be able to bring all the items I have, with the order ID. var listaItems = new ItemRepositorio().BuscarTodos().FirstOr...
asked by 01.10.2016 / 21:49
2
answers

File uploads via ajax

How can I do multiple uploads, that is, I have a screen with multiple input of type file , how do I pass this via Ajax to my server? I have tried with XmlHttpRequest , but it did not work, I would have it if I had a input...
asked by 02.07.2014 / 16:28
1
answer

Printing of pvc badge with thermal printer

I have a thermal printer to do a test print of badges with pvc cards. At first I put up a badge template in ReportViewer and I'm generating it in pdf . And apparently it's losing a lot of quality when it comes up in that format. I wo...
asked by 27.05.2014 / 13:36
2
answers

Column Charts (Bootstrap)

I'm developing a system that needs to display column graphics. The system is using Bootsrap and MVC 4 C #. Can anyone tell me if there is any framework for creating graphics?     
asked by 17.06.2014 / 17:30
3
answers

Why is onBlur not running?

I was wanting to perform a Javascript function when dropdown lost focus. I'm doing it this way, using onBlur, and it's not working: function DesabilitaFiltro() { alert("ok"); } <div class="form-group"> @Html.DropDownList("Se...
asked by 06.10.2015 / 18:57
3
answers

Provide file download from server

There is a feature to register the data of a client. The user selects a file from his computer, and this file is imported into the server into a separate folder, which can be a PDF , JPEG PNG . There is an editing screen for this client, w...
asked by 26.04.2017 / 18:40