Questions tagged as 'asp.net-mvc'

1
answer

Customize IdentityUserClaim

I'm trying to customize the Identity Claims table, through the IdentityUserClaim class. I'm using a mapping, through the EntityTypeConfiguration class, but I get the error: The configuration for type 'Microsoft.AspNet.Identity.EntityFramewo...
asked by 08.03.2016 / 18:54
0
answers

Kendo UI - Multiselect with remote data source

I've been busting my head with the multiselect kendo UI >. Whenever I return the list with the information of my action , the plugin can not understand the information and returns me the following error: Cannot read property 'value' of un...
asked by 15.02.2016 / 14:04
1
answer

How to perform a CRUD in C # with MySQL and ADO [closed]

I need to do the relationship between tables 1: N and N: N. Table produto : public int id {get; set;} public string produto {get; set;} public list<tamanhos> tamanhos {get; set;} Table tamanhos : public int produto_id...
asked by 23.03.2016 / 04:39
1
answer

EF Code First change default Initial Catalog

I am trying to modify the database Padrão of Entity Framework but the Initial Catalog is not being modified.     
asked by 26.01.2016 / 20:20
1
answer

Relative Path with virtual subdirectory

Good afternoon, I've been searching the internet for solutions to my current problem with paths, but I can not find them. Imagine that I have the following links:    www.site/Arquivos/Uploads/imagem.png       www.sitedev / Client / Fil...
asked by 22.01.2016 / 14:52
1
answer

C # NullReferenceException error in ToList () method

I'm working on a project in C # MVC for WEB with EntityFramework. I was able to set it up next to the database and I also installed Ninject. The first controller I am working on is Users. I want to create an environment for maintaining such d...
asked by 17.02.2016 / 02:11
2
answers

How to print in dot matrix printer on the client with a web application?

I have an application made in C # MVC with a routine to print plain text on the default printer. The RawPrinterHelper.SendStringToPrinter method that is described in this article has been used. Printing normally occurs when I run the ap...
asked by 23.10.2015 / 22:43
1
answer

C # Entity Framework Invalid object name 'sys.default_constraints'

In my project in C # MVC 5 with Entity Framework next to a SQL Server Server, among a series of classes, I have a class called ctmdMandados.cs: public class ctmdMandados { //cadastro dos mandados recebidos e seus status public int Id {...
asked by 25.02.2016 / 21:40
2
answers

@ Html.DropDownListFor Default item in the first list values

Good afternoon, gentlemen. I use DropDownListFor to load lists, example load all my clients to be selected. However, I need that if a record does not appear in the listing have the option to add a new item. I can write the code, how...
asked by 17.12.2015 / 21:30
0
answers

Validation on client side with DataAnnotations only works on localhost [closed]

I've been searching for three days and have not seen anything like this anywhere else. Checking if it was some kind of hosting block, I hosted the site on godaddy, and then on the azure to confirm, and continued the same thing. Summarizing...
asked by 22.11.2015 / 20:51