Questions tagged as 'asp.net-mvc'

1
answer

Generate model for the response of an api

At the moment of consuming an api, the next response returns. [ { "MiKey": 0000, "MiKey": 02, "MiKey": "CADENA", } ] Fictitious data My Model: public class RootObject { public int MiKey { get; s...
asked by 24.05.2018 / 14:54
2
answers

urls on asp.net mvc 5

Can you leave the urls of my web application in the following way? Example: Normal url - > localhost/MiControlador/MiAccion Url converted - > localhost/mi-controller/mi-accion or localhost/MiController/mi-accion...
asked by 16.05.2018 / 15:39
1
answer

how does the AddResponse method work?

Good afternoon everyone I am learning ASP.NET Core 2.0 And get to a section where you create a class to use as a repository "Repositorium.AddResponse (Received Object)" 1-) What role does the repositories have for what they do? 2-) What fu...
asked by 11.05.2018 / 18:05
1
answer

How to rename the tables created by the EF by default?

Can you rename the tables created by the EF by default? When creating a project with some authentication mechanism, a number of tables corresponding to the logeo system are created automatically.     
asked by 19.06.2018 / 03:00
2
answers

Paginacion en JQuery

My website will be based on doing activities and every time you finish an activity you will automatically be asked which NickName you want to appear on the Results page (where the Nick will be, what activity it is, the note and the date)....
asked by 01.03.2018 / 00:43
1
answer

Pass Index data to an MVC class

Good, in the Index file I have an Input in which I want to enter a text string and pass it to an ActionResult of a controller, and from this I call a method of another class, but I do not know how to do it. Index: Driver: Extra class...
asked by 01.02.2018 / 12:26
1
answer

Disabled does not work in the driver

I'm doing a web application in c # asp.net mvc5, I have a dependent dropdown that is loaded through a javascript function and the data is from the database To this dropdown I want to put a text - Select - , and in turn this text leav...
asked by 18.12.2017 / 22:42
2
answers

How to make the tag br / be recognized in html when it is returned from a database?

I am working in C # with MVC and I am saving text in SQL server but I need to do line breaks so I chose to include the <br/> tag to perform the jumps, from a view I made the insertion in the data base and another view I show that da...
asked by 25.11.2017 / 02:10
1
answer

Roles and Permits MVC 5

Good morning I am working on a project with MVC 5 with Entity Framework, as you know the tables for the registration of users and roles are generated automatically is very easy with entity framework, well what I want to do is the customizatio...
asked by 01.12.2017 / 17:17
1
answer

Can not insert the value NULL into column 'Name'

Hello, I am working with ASP.NET trying to make a new object of categories from other classes and as I am passing all relevant parameters of both classes. But apparently I'm missing something I do not know if it's because of what I'm going t...
asked by 29.11.2017 / 18:45