Questions tagged as 'asp.net-mvc'

1
answer

View Selected Image jQuery

I am doing my TCC and it will be about image processing. I'm having difficulty with the web part, and was wondering how do I load the selected image in the input file to appear on the page. Here's my code: <script> $(document).ready(func...
asked by 14.08.2014 / 16:53
1
answer

Preview data before saving in bank

I'm doing a news site in ASP.NET MVC 5 and there was a need to see Preview of the news before saving it to the bank. With a action name Preview I can send the data to it and send it to a View with the page design w...
asked by 12.05.2014 / 21:17
1
answer

Doubt in View and Controller construction with entity dependent on cardinality N

I'm on a project that I have a 1: N relationship. Explaining better: Project is for a school where students have their occurrences. So I would be a student for several occurrences: Models \ Student.cs public class Aluno { public long Id...
asked by 14.05.2014 / 19:17
1
answer

Learning to use AJAX in ASP.Net MVC 4

In my project, I have two different models , thus generating their controllers and their views. The only thing that happens is that I do not know how to use AJAX and I needed an urgent help from you. What happens is that I wanted to render th...
asked by 13.05.2014 / 19:31
1
answer

What are the free library options for ASP.NET MVC PDF generation? [closed]

I am currently using the selectpdf library, but it has some restrictions on its free version, I would like to know other options that I can use.     
asked by 26.02.2016 / 15:35
1
answer

Jquery does not send the parameter to search

I need to do something like this: Jquery Autocomplete jQuery: $("#NumeroContrato").autocomplete({ source: function (request, response) { $.ajax({ type: 'GET', url: 'Cliente/ListarCliente...
asked by 01.03.2016 / 14:02
2
answers

How to render two Views typed in an Index ()?

I'm trying to render two views created with scaffolding, one is for Create and another is for the List in>. The idea is to add the following to index : @model BraveryBranded.ASP.Models.News @{ ViewBag.Title = "Index"; } @Render...
asked by 07.02.2014 / 22:59
1
answer

Insertion error in the database, how to solve this case?

I'm trying to insert a form with various data, some booleans, radiobuttons, datetime etc. I need to know if everything is correct, I'm catching them via FormColleciont . Controller: [HttpPost] [ValidateAntiForgeryToken]...
asked by 17.05.2014 / 04:59
2
answers

Validation model always fails

I have the following templates: public class Local { [Key] public int Id { get; set; } public virtual Grupo Grupo { get; set; } } public class Grupo { [Key] public int Id { get; set; } [Required] public int? Loc...
asked by 11.09.2014 / 20:23
2
answers

How to execute query in C # for request control

I'm new to programming and need to add some functionality in a C # asp.net application. One is a control that prevents the user from proceeding with the request if it has any pending on the system. I'll describe it step by step. My view @us...
asked by 11.09.2014 / 21:45