Questions tagged as 'asp.net-mvc'

0
answers

Generate grid with multiple records [closed]

Good morning, I need to make a grid where I need to say exactly the value of each line based on a column of a table in the bank, I need help because I have never done anything like this. It is an ASP.NET MVC web application using SQL Server a...
asked by 27.06.2017 / 16:03
1
answer

Display an EnumDropDownListFor a condition

How do I display EnumDropDownListFor as a condition? For example, if the user wishes to report their sexual orientation, enum is displayed. Otherwise it is not displayed.     
asked by 15.05.2017 / 01:36
1
answer

Publishing site in IIS gives debug error

I have a rather strange problem. I'm developing a MVC site in VS2013, I have a IIS site set up for my project. As soon as I publish my site to IIS , then when I launch the debugging site (VS) I get a IIS error Visual Studio (can...
asked by 11.05.2017 / 13:39
0
answers

Doubt with SSL / TSL and Asp.net mvc

I made an application for testing and in the project I changed the SSL Enabled field to True. The application now has two URL's, one for HTTPS and one for HTTP. Ex: https://localhost:44338/ http://localhost:22786/ I can access both wa...
asked by 19.04.2017 / 15:23
2
answers

Input submit does not call ActionResult

I'm having trouble calling ActionResult using input type="submit" and passing the model data. I did a test using ActionLink but the Model is not sent. Could someone give a light? Follow the code: Controller: [HttpPost] p...
asked by 17.05.2017 / 22:05
1
answer

How to use inheritance and polymorphism when passing a JSON to an MVC C # Controller?

I have an MVC method that receives a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } It turns out that this class has two children, a class called a person. and another class...
asked by 12.04.2017 / 01:13
1
answer

Error in T4 to SQL .NET

When trying to generate the sql code based on edmx you are experiencing this error    Severity Code Description Project File Line Suppression State   Error Running transformation: System.NullReferenceException: Object   reference not set to a...
asked by 10.04.2017 / 18:52
1
answer

resize an image and then save it in mysql

From a form I want to resize an image only after and then save in mysql, or grab an already saved image in mysql and resize it and then update the registry. Thanks so much if anyone can help me. * the table in mysql * CREATE TABLE 'imagem...
asked by 11.04.2017 / 23:31
0
answers

Doubt about submit and jquery?

I'm developing an application in Asp.Net MVC and am having a problem that I can not solve. I have a form with 2 buttons submit , and when I do submit I want to get the name of the button to which I clicked by id and thus chan...
asked by 27.05.2017 / 15:18
1
answer

How do I approve a model depending on the confirmation of another model?

How do I make the View of request only appear to the user, when the confirmation of class Aprovacao is true . Follow logic: The user creates the request and registers, 2- User waits for confirmation of request made...
asked by 15.05.2017 / 23:24