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

1
answer

Script does not appear when loading Section

I have a Section named Scripts (which is set by default): @RenderSection("scripts", required: false) And I'm trying to load the TinyMCE Plugin as follows: @section Scripts { <script src="~/Scripts/Libs/tiny/[email protected]...
asked by 04.11.2014 / 19:38
1
answer

Difficulty putting checkbox in treeview with or without bootstrap

This is my treeview: @*Daqui para baixo, tudo se relaciona com a treeview*@ <div class="well" style="width:100%; padding: 8px 0;"> <div style="overflow-y: scroll; overflow-x: hidden; height: 300px;"> <ul...
asked by 04.09.2014 / 15:42
0
answers

KnockoutJS and ASP.NET MVC

So, I'm starting to take a look at KnockoutJS and it's all a little gloomy yet, in the example I'm following, I'm having an error that says O objeto não oferece suporte à propriedade ou método 'join' . My JS function setupHubClient()...
asked by 03.03.2015 / 13:45
1
answer

Returning selected data to Razor on an anonymous object

I have a controller where I look for the birthdays of the month. However, I have more than 1000 birthdays a month, returning a table with more than 50 attributes of each, thus making the consultation time consuming. public ActionResult Ani...
asked by 03.03.2015 / 18:25
1
answer

Can I add tables of content in the same database as the users? ASP.Net identity

I created an ASP.Net MVC 5, EF 6 project with individual accounts. The database is automatically generated with 5 tables: AspNetRoles ASpNetUserClaim AspNetUserLogins AspNetUserRoles AspNetUsers Is it good practice to put more...
asked by 05.04.2014 / 03:30
1
answer

Asp.Net Mvc Remote Validation

So I'm trying to implement RemoteAttribute , but when I click the submit button, it's not giving post to my page. My Controller public class TesteRemoteController : Controller { // GET: TesteRemote public ActionR...
asked by 26.01.2015 / 13:24
0
answers

Why does my asp.net mvc tables have pk duplicate user?

I'm using asp.net identity for authentication and authorization I have my user class: public class Usuario : IdentityUser<int, ApplicationUserLogin,ApplicationUserRole, ApplicationUserClaim> { } public class ApplicationUserLogin : Id...
asked by 23.09.2014 / 23:46
1
answer

'object' does not contain a definition for 'Action'

I'm using MVC 5 with Identity to login, this error appeared so far that I could not find a solution. Error happens in view _ExternalLoginsListPartial.cshtml     
asked by 16.09.2014 / 16:43
1
answer

DropDownList Cascade and MVC Compound

I have a following doubt I have 1 User class and it consists of other classes Gender, Course and Semester Ex public int Id { get; set; } public string Nome { get; set; } public Genero Sexo { get; set; } = new Genero(); pu...
asked by 29.04.2018 / 16:34
1
answer

DropDownList with SelectList Item

Personal I'm trying to create a Select List, but in case it's returning this to my view:    Microsoft.AspNetCore.Mvc.Rendering.SelectListItem so it is not returning the Cargos that are in my database and here are the codes I...
asked by 29.11.2018 / 18:24