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

1
answer

How to create a Cascading DropDown?

I would like to create a DropDown dependent on another DropDown in C #, ASP.NET - MVC 5, in that case it would be a dropDown with the names of all the client and then another DropDown with the Client's phones selected in the first DropDown. How...
asked by 27.11.2014 / 01:24
1
answer

Generate bank backup via application

In my project, I connect to the database. Is there any way I can back up my database via ASP.NET MVC 5 and save that backup directory, either in the project root or in a folder in a more secure place? The database I use is SQL Server Ex...
asked by 27.11.2014 / 13:28
1
answer

Function not set with javascript

I made a cshtml and in it there is a button that calls my function that inserts into the DB. It turns out that when I click the button, it gives me this error: Uncaught ReferenceError: InsereCadastro is not defined. What do I need to do to get a...
asked by 29.07.2014 / 01:52
1
answer

Login with Identity in MVC 5

I'm using MVC 5 and Identity for Login. I have a User class and I want to login with it, using the properties of this class for example the Property registry (User) instead of UserName (IdentityUser). I have the User Class that inherits from...
asked by 18.09.2014 / 05:06
1
answer

How do I get Html.LabelFor () to display an asterisk in required fields?

I want the required fields (properties with the Required attribute) to render with an asterisk indicating that it is a required field. public class Foo { [Required] public string Name { get; set; } } Html.LabelFor(o => o.Name) //...
asked by 14.12.2013 / 20:36
1
answer

How to check if my user is online asp.net identity?

I want to block it so I can not use the same login on multiple machines. So I need to know if it's online, how do I do this in asp.net identitty?     
asked by 15.07.2014 / 21:37
3
answers

MVC 4 site publication in IIS is giving error

I uploaded my published application to IIS and I can not see it in the browser. Before I was giving Forbidden error (403) and now for Server Error (404). I've never uploaded a site in MVC to IIS. I've always known it's not the conventional way,...
asked by 03.07.2014 / 19:09
1
answer

CKEditor with MVC5 and EF6

I put CKEditor in my project. It works fine, but when I click the Save button it returns this error:    A possibly dangerous value Request.Form was detected on the client (Content=" <p> <span style="f..."). ") PS: I alre...
asked by 17.05.2014 / 19:17
1
answer

How to minify CSS / Javascript automatically in ASP.NET MVC5

I use Visual Studio 2017, my application runs in ASP.NET MVC5 (Razor), is there a way to minify all the files I choose at the time of "publish"?     
asked by 22.03.2018 / 14:32
1
answer

Physical and Legal Person on the same table

Could you help me please? I am developing a client crud, where I will leave legal and physical person in the same table, but in the case when the user chooses the type of person through a radio button, I will show and hide some fields through...
asked by 18.09.2018 / 19:34