Questions tagged as 'c#'

2
answers

Select a list of two common related elements in sql with entityFramework and linq

I have a list of people that are related to a committee table and another table types person, I need to return the list of people of a committee and also return the list of people of a type note: return the people that I return from the relation...
asked by 27.07.2018 / 17:29
4
answers

How to get part of a url from a string on asp.net c #?

Good I would like you to help me I want to get value of a string .              I always want to get the parameter after &VariableR=              Now I'm doing this code but I only get two digits but I'd like to get everything a...
asked by 20.07.2018 / 15:49
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 / 13: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 / 12:46
0
answers

Additional information: Object reference not set to an instance of an object

It turns out that I'm trying to make a post from a posted file from the asp view to the controller but it turns out that the file arrives null simply is not sent nose that may be happening the error is this: Additional information: Object refere...
asked by 02.05.2018 / 12:54
0
answers

Generate labels with C #

I am programming a system to generate labels, before I relayed it through code (with the ZXing library) and its labels as well. Example of how I currently print the tag: private void printDocument1_PrintPage(object sender,...
asked by 08.05.2018 / 18:34
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 08.05.2018 / 22: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 / 21: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 / 16:40
0
answers

Unity 2017 move two different objects simultaneously on Android

I'm trying to make a kind of Pong for Android. I have a GameObject for each player, differentiating between them by the Tag they carry. In principle I programmed the controls for OnMouseDown () and OnMouseDrag (), but I realized that in the mobi...
asked by 29.04.2018 / 10:45