Questions tagged as 'asp.net-mvc'

2
answers

Error MySQL connection to ASP.NET MVC

I'm trying to work with a MySQL database in my application. However, I'm getting the following error:    Keyword not supported: 'data source'. I've done all the related procedures in this question But briefly, I performed this installat...
asked by 25.08.2014 / 17:20
1
answer

Get image data

My system must process some images and get key data in text. Of course, the images will follow a style pattern. Where can I start? Is there any API that can help me?     
asked by 26.06.2015 / 21:40
1
answer

Automate DDD

Is there a faster way to create a structure in asp.net mvc using DDD (plugin or framework)? For example, whenever you create a new entity, you must create many files in several projects and still configure the automapper and ninject. Is there...
asked by 19.01.2016 / 18:44
1
answer

SharePoint with MVC 5 what better way to work?

My question is what form of hosting should I use? Provider-hosted Autohosted SharePoint-hosted Application will stay on the server to be consumed by internal users and external users . Our team is made up of MVC developers and...
asked by 10.08.2015 / 16:19
1
answer

How to make a ViewBag.list receive a type ListKeyValuePairstring, string?

How do I pass a list ( List<KeyValuePair<string, string>> ) to view by ViewBag ? My code: string grupo = "ConfigsPortalWebTextos"; List<KeyValuePair<string, string>> lista = new List<KeyValuePair<...
asked by 14.05.2014 / 16:33
2
answers

Code First with Complex Types, when doing Scaffolding Complex Types properties are not found in the views

I'm following the presentation of Sergey Barskiy in link , where he demonstrates the approach of Entity FrameWork with Code First. I loved it, but I had a problem. In the presentation, it demonstrates that I can use Complex Types for the...
asked by 04.02.2014 / 15:30
1
answer

Call an asynchronous function in an ActionResult?

How to call an asynchronous function on a non-asynchronous controller, to be clearer follows a situation: I have a form that when saving it needs to save data in the database and simultaneously send an email notifying a user that such action...
asked by 04.03.2016 / 13:37
2
answers

Multiple projects in MVC and WebAPI

I'm looking for a project template that involves multiple MVC and WebAPI projects. In the solution I'm thinking of designing (if possible) a content management solution for multiple clients and I'm thinking this way: I wanted to have a Pai pr...
asked by 08.02.2016 / 21:45
1
answer

Razor C # make list and sublist with ListString (originally "how to check if an HTML element already exists")

I need to know if an HTML element already exists, in my loop, if it exists I use it, if it does not exist I'll create one. How would you do this within a @foreach (var item in Model){ ... } Following the comment of Gypsy, as it is not po...
asked by 13.05.2015 / 01:28
1
answer

How to do Scaffolding in ASP.Net MVC with texts and resources in pt-BR?

How to make the text generated by Scaffolding of ASP.Net MVC be texts in pt-BR? Note: You are not using ASP.NET MVC en-US features. Features only translate automatically generated messages, and are not part of Scaffolding .     
asked by 01.07.2016 / 02:59