Questions tagged as 'asp.net'

0
answers

Error creating view in web project aspel, net of visual studio

This is the code of the MarcaController file using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Tienda.Models; namespace Tienda.Controllers { public class MarcaContr...
asked by 04.05.2018 / 07:35
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

Why is my onclick not recognized in ASP NET?

What I want to do is have my onclick perform Back end actions since I am working with asp. .aspx code: <asp:UpdatePanel ID="panelToma" runat="server" class="botonToma"> <ContentTemplate> <asp:Button ID="btnOk_T" runat="se...
asked by 09.05.2018 / 00:11
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
1
answer

ASP.NET MVC 5 refactoring method to consume api

I am at a crossroads, since I am developing a web app where I must consume an api by GET and POST, the logic of the service is solved, but I would like to refactor the code so that I do not have to repeat the same pieces in each request. I ha...
asked by 03.05.2018 / 18:40
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
1
answer

How to change the text of h3 from asp.net, I do it in the manner of the description but it does not work for me?

The code is the following codebehind as well as the designer, the idea is to change the text of the h3 when changing the radiobutton selection, but it does not execute the jquery code the text remains in Add New Product / Service and does not ch...
asked by 23.04.2018 / 19:36
0
answers

How to use the dynamic connection parameters

Currently this code gives me an error when the session expires, because it loses the data, what I would need to be able to store the connection data, the variable that never loses the data and that is accessible to all controllers. In the ses...
asked by 24.04.2018 / 18:49
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
0
answers

Error consuming web service on asp.net mvc5

I'm getting this error when trying to consume a webservice :    System.ArgumentException HResult = 0x80070057 Message = The provided   URI scheme 'http' is invalid; expected 'https' Parameter name: via   Source = StackTrace: I unde...
asked by 19.04.2018 / 22:12