Questions tagged as 'c#'

1
answer

Radiobutton on Repeater?

I need to do an OnCheckedChanged on a RadioButton inside a repeater, but I could not do it the normal way. Is there a way to create an event on a radioButton inside a Repeater? <asp:Repeater ID="rptDiasSemana" runat="server" OnItemDataBound...
asked by 21.03.2018 / 22:22
1
answer

Activate one object and disable others

I'm doing a car shop system in the Unity engine, and I need a method to activate a contour type on the selected car. However, I need the contour of the other cars to automatically turn off. The script I already have is this: using System.Colle...
asked by 14.02.2018 / 03:20
1
answer

Start an MVC application through a Windows Service

I have an application that was developed in the DDD standard, which uses dependency injection, it is working normally, but I needed to add a project of type Windows Service that will be the start of the application, the problem is that a referen...
asked by 16.02.2018 / 18:33
1
answer

How to change row in text file in C #?

I currently report on the variable stringantiga the exact value to find and replace it. Is there any way to substitute for the line number instead of the exact value of stringantiga ? string arquivo = ConfigurationSettings.AppS...
asked by 16.02.2018 / 16:03
1
answer

ASP.NET Identity - Find user by email and password

I am using Asp.Net Identity for the first time, along with the Entity Framework, and to create a user, I make the following code: var identityUser = new IdentityUser { UserName = viewModel.Nome.Replace(" ", "."), Email = viewModel.Email...
asked by 13.02.2018 / 15:26
0
answers

Unwanted message when displaying desktop notification

Hello,I'mdisplayinganotificationonthedesktop,butbelowthemessage"vshost32.exe" appears. I would like to know how to remove this. Obg. My code: notifyIcon1.ShowBalloonTip(10, "Lembrete ", " Você tem 10 contas a pagar ", ToolTipIcon.Info);  ...
asked by 01.02.2018 / 22:59
0
answers

Add field of decimal type entity framework [closed]

I have a Repair table on it, I have ValueObject, ValuePart, and ValueObject all of a decimal type. The field ValueTotal = ValueOfOblock + valuePart. But this is returning 0. I am showing this in the detail view when I click I will see the repair...
asked by 31.01.2018 / 20:54
1
answer

Lib dependencies in C #?

I'm doing some lib in C # to use in my projects and not always have to rewrite. but how do I do with Lib's dependencies? Example: I made a lib to use Google Drive and it has the name lib.GoogleDrive but needs to go together: Goo...
asked by 01.02.2018 / 12:04
1
answer

How to get Json's return from the Hgbrasil Weather site in my Xamarin application

How do I get the values available in Json format in my Xamarin application. The code below is not returning anything. public class MainActivity : Activity { ProgressDialog dialog; TextView txtv1; protected override void OnCre...
asked by 31.01.2018 / 20:58
0
answers

Android and iOS platforms error in HttpClient.GetAsync (Uri requestUri) function for redirect URL

I'm developing a Xamarin Forms application that basically uses the GetAsync (Uri requestUri) function through the HttpClient: HttpClient httpClient = new HttpClient(new NativeMessageHandler()); var uri = new Uri(http://www.appwebservice.meusit...
asked by 05.03.2018 / 14:06