Questions tagged as 'asp.net-mvc'

1
answer

What is the [HttpGet] statement for? [duplicate]

In a given method of my Controller created in Asp Net MVC , I learned that I could put the [HttpGet] statement. In other cases, like in my models, I realized that you can also put [Length(10)] and still other things....
asked by 04.05.2016 / 14:57
1
answer

WYSIWYG editor with code style

I'm creating a website where I'll post some snippets of code (like a backup of my code), and for that, I'm using ASP.NET MVC. You're almost done, what's missing is a WYSIWYG editor that meets my needs. I'm using TinyMCE. It's very good, bu...
asked by 23.04.2016 / 21:46
1
answer

Disable button while the form is not valid

I need to disable% save% when all fields have been validated, the following code button is always being disabled, but would you like to add a condition to change only if you have validated on the client layer? $('input[type=submit]').c...
asked by 04.04.2016 / 17:14
1
answer

modeling 0..1 to 1 in the Entity Framework - Error The entity or complex

I'm trying to make a linq query, but it returns the error:    Additional information: The entity or complex type   'WMB.Celielo.Model.CieloToken' can not be constructed in a LINQ to   Entities query. My query: var temp = (from tok i...
asked by 05.04.2016 / 18:40
1
answer

Are MVC and Webforms (with code-behind) paradigms mutually exclusive?

My question comes from an instructor's explanation that the MVC standard applied to the presentation layer, but when I came across #     
asked by 01.06.2016 / 13:11
1
answer

Fluent API zero-to-one Relationship 0-1 - bringing results from another relationship

I'm trying to make the relationship between my Cliente and CieloToken , tried with Fluent API and Data Annotation , I mixed them both and it did not work. In fact it does, but even though Cliente does not have...
asked by 12.05.2016 / 20:46
1
answer

is it possible to two submit a button?

Is it possible, within a click to call two submit? Here's my problem, I need to call two ActionResults within a button. Here's what I've done so far: $('#enviarPreProposta').click(function () { var telefoneValido = ValidarTelefon...
asked by 12.02.2016 / 14:37
1
answer

MVC - How to load a template html page, modify it and send it by email

I am making a form that sends an email to the client, this email comes from a template depending on the stage of the client. Ex: Stage 01 sending the email with the body coming from template_01.html, if the client is in stage 04, sending the ema...
asked by 17.02.2016 / 16:49
1
answer

Session Issues in MVC application using ActionFilters

I have a problem with my application ASP.Net MVC , about authentication. Let's go by steps: 1) I have my login screen /Login/Index simply the user logs, if found in the MySQL database, and logs in and redirects to /Dash...
asked by 11.01.2016 / 14:36
1
answer

Error in file project.json

I'm having an error in my project, it appeared after I added Entity Framework to my project! This error persists at line 21 of the project.json file. I'm using Visual Studio 2015. The exact description of the error is:    "Th...
asked by 11.04.2016 / 19:58