Questions tagged as 'asp.net-mvc-5'

1
answer

EntityException when connecting to remote database

When connecting to the local bank, the application runs 100%. However, when I try to connect to the sql server remotely (on a nethost server), the application raises the following exception: Below is an error and a connectionstring.    add...
asked by 09.09.2014 / 02:02
1
answer

MiniProfiler V4 does not render in MVC5 + EF

Good morning, guys. I have installed MiniProfiler v4 in my project ASP.NET MVC5 to check for some slow points, but the results screen is not rendered in my view - and there is no error in the Console, nothing happens. Anyway,...
asked by 02.10.2018 / 16:19
1
answer

Can the automatically generated .mdf database in App_Data be used in production?

Can the database automatically generated within the App_Data folder in projects Asp.Net MVC and Web-Api be used in production or is it a test-only basis?     
asked by 15.07.2014 / 13:45
0
answers

Model is not being fully validated

Good morning, I'm testing an application to add a client, but whenever I try to add the user, test the ViewModel to check if the information is consistent, but the program does not validate the whole ViewModel ignoring the end of it, Why is this...
asked by 19.09.2018 / 14:57
1
answer

Write Telephone Array in the Database

I created a Clientes table and two from clients that are ClientesTelefone and ClientesEmail in my form I am generating email and phone fields dynamically, so I would like to know how I can receive and write these values in t...
asked by 18.09.2018 / 21:54
1
answer

How to create an index for the fields of a viewmodel to be added dynamically

I am creating some fields dynamically in asp.net core mvc to register a contact. For this, I use a partialview. Within a div I'll add each row of fields as the user clicks the Add New Contact button. Through a FOR, I control the index of a...
asked by 06.09.2018 / 01:22
1
answer

Why can not I have the password hash in my seed method?

I'm trying to use my method seed below to create a user in the database when it's created: protected override void Seed(CodingCraftMod1Ex4AuthMembershipContext context) { string password = PasswordsHelper.EncodePassword("123456", Sy...
asked by 30.12.2018 / 01:08
1
answer

How to force update of some values when using Javascript window.history.back ()?

Is it possible to force update of some values of my View even when I use window.history.back() of Javascript? My example: In my layout, I have a cart icon with the number of items inside it. When I add an item to the cart with this cod...
asked by 08.11.2017 / 19:00
0
answers

MVC5 - What is the correct way to work with MVC in case of data return from a grid?

I have a template with 4 fields that after a filter displays a grid with X records on the same page (VIEW). I would like to know the best way to return the data of the grid in question to the controller? Simplified example (Model): n...
asked by 04.04.2017 / 19:45
0
answers

Asp.Net MVC 5 vs Asp.Net MVC Core? [closed]

I see many talking about Asp.net Core. Is it worth migrating MVC5 to Core? Or should I continue with MVC5?     
asked by 04.08.2017 / 16:58