Questions tagged as 'asp.net-mvc'

2
answers

Create HttpClient service to reuse

How should I create my service HttpClient to be instantiated once in the application to be able to reuse that instance throughout the application and avoid exhausting the sockets ?. All this given that I am consuming a WebApi....
asked by 10.05.2018 / 15:20
0
answers

How can I get a page redirected correctly using RedirectToAction?

I am making a login to access a project that has already been developed but I have had problems in how to have the RedirectToAction because it throws me the following error: The Sidcar view is in the Home folder, but I do not know why it t...
asked by 10.05.2018 / 14:46
1
answer

Get table records in response to clicking from another table and display them

I have two tables in a view, one of them is hidden and appears when I click on a row in the first table Hidden table: @model Tuple<IEnumerable<web.Areas.Periodo.Models.PeriodoViewModel>, IEnumerable<web.Areas.Peri...
asked by 01.05.2018 / 23:22
0
answers

how to dynamically resize bootstrap-treeview horizontally?

I have the following html where I load a treeview with nodes, what I would need is that it could be resized with the mouse pointer horizontally, that is to enlarge the width of the treeview. <div id="container-tree" class="col-sm-2 tree-co...
asked by 27.04.2018 / 20:34
0
answers

ASP.NET MVC 5 consume data api by post

someone who can help with the following problem ...? I'm consuming data from an API using HttpClient but it returns the following    {"Object reference not set as instance of an object."} I have the following: The API response retur...
asked by 03.05.2018 / 21:25
0
answers

How to pass a UserManager object to the Initialize class

I have a class in asp.net core 2.0 called Initialize that has a method public async static Task SeedData(IServiceProvider serviceProvider, UserManager<ApplicationUser> userManager) { } I want to call it from my Startup class as follo...
asked by 23.04.2018 / 00:29
1
answer

How to get Bootstrap table data from the visible columns?

I have a table that has the extension resize disables some columns and I use the method $table.bootstrapTable('getData') I want to get a JSon with the remaining columns but the method brings all the columns. as it would be to bring only t...
asked by 18.04.2018 / 17:54
0
answers

How to organize MVC C # bootstrap versions?

I'm using a template that depends on bootstrap 4 and I want to use plug in Bootstrap Table MVC but occupies a lower version of bootstrap do not load the galphicons icons correctly so how can I load the icons or use the two versions?     
asked by 13.04.2018 / 18:49
0
answers

asp.net-mvc persist state views to return to previous states

I write the post because I have been thinking about how to solve a problem that I have to solve and I do not know how to approach it ... (I feel the brick, it's very conceptual all ...). The fact is that I'm with an application that has 5 mai...
asked by 13.04.2018 / 09:39
1
answer

Use an SQL Query as the source of a Model in the Entity Framework

Good morning! I comment, I'm having the need to add a Model in EF, but with the peculiarity that you use a Query SQL as a source of information instead of a table. I tried to do it by the normal ways in the following way [Table("[dbo]....
asked by 09.04.2018 / 14:39