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

1
answer

How to register legal and physical person in c # mvc?

How do I make PeopleController's Action Create to save both the physical and legal attributes? PeopleController: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Include = "PessoaId,Telefone,Endereco,CEP,Cidade,Estado,...
asked by 24.04.2016 / 23:52
2
answers

Problems with ValidationSummary - Asp.Net MVC

I have problems with ValidationSummary in my application that manages Courses , I have a screen where the student enrolls in a course and if he tries to enroll in the same course the Student already enrolled in the course message should app...
asked by 14.06.2015 / 06:31
1
answer

Exception when generating Controller with Entity Framework

In my application using Asp.net mvc , with Entity Framework 6 , with Mysql , when trying to add the Controllers , Views , using EF , I get the following error: Myweb.configSettings:<connectionStrings><addname="MyEntities" conne...
asked by 08.08.2015 / 21:59
2
answers

C # MVC5 - Insert Fields with 4 Decimal Digits

I'm doing an insert into the database (SQL Server 2008) of a field set to 'decimal (10,4)', of which I try to insert / edit, through my C # application MVC5, a field of my model type 'decimal'. The fact is that when I debug the code, even bef...
asked by 09.07.2015 / 22:08
1
answer

Application Layers and Web API 2

I'm having a question in planning and structuring my application and hope to hear from the more experienced. Today, in the plan, I have data access (DAL) and the MVC 5 Web application in different layers and I know there is a great need for i...
asked by 07.10.2014 / 17:01
1
answer

OnDisconnected event in SignaIR does not work right

Well, I've developed a chat according with this link and everything worked fine. But the disconnected event does not work right. What happens is that, according to the referral link, this event is triggered when the user closes the page, th...
asked by 28.10.2014 / 14:49
1
answer

Login screen with membership and mvc5

How do I make a login screen using membership and mvc 5? By the way, how do I use membership?     
asked by 04.08.2014 / 15:33
1
answer

Preloader Asp.net MVC

How can I make a preloader (loading ...) while it is rendering the view in @RenderBody ? In search I just found examples using Partial, but Views not Any ideas?     
asked by 21.08.2014 / 21:24
1
answer

You can pass the roles without using [Authorize (Roles="Role name")]

My system has dynamic roles ("groups"), the user that adds and places users in. Also arrow that if it can Insert, edit, delete, etc ... With the use of Asp.net Identity Roles, can you do this dynamically, without using "Role=", that is, wi...
asked by 22.08.2014 / 15:27
1
answer

How to convert a view to string in the controller?

I would like to convert this view to string and have the value in string in my controller The problem is that I would like it to execute an excerpt of script that is in this view The current method...
asked by 21.05.2015 / 01:28