Questions tagged as 'c#'

1
answer

Dns.Resolve () vs Dns.GetHostEntry ()

The Resolve method is obsolete, and Microsoft directs you to use GetHostEntry . However when using GetHostEntry the exception occurs:    This host is not known When I use Resolve there is no exception and the pr...
asked by 17.08.2016 / 17:09
1
answer

Relationship between entities returns null

I'm having trouble checking a parameter in a relationship between the Historian and Login entities. public class Historico { public int ID { get; set; } public virtual Login login{ get; set; } public DateTime inicio { get; set; }...
asked by 26.10.2016 / 04:51
1
answer

Disabling TextBox not filled [closed]

I am developing software in C # to count the number of electronic anklets that go inside a box. This box has space to store 40 anklets. In the case of the Software I put 40 txtbox where each one represents the serial number of each ankle. As it...
asked by 26.10.2016 / 22:32
1
answer

WCF and Daylight Saving Time [closed]

I'm having a date conversion problem in WCF. I get a Json a DateTime in Unix format "\/Date(1477320927000)\/" - 24-10-2016 12:55:27. Wcf receives this date as 24-10-2016 14:55:27. It gives a difference of 2 hours. I tried to u...
asked by 26.10.2016 / 14:33
1
answer

Logging into a Web site using WebRequest

I need to log into a site using asp.net web forms. I'm doing it this way. How could I redirect to the page after logging in? protected void Button1_Click(object sender, EventArgs e) { var loginAddress = "http://spor...
asked by 19.09.2016 / 20:00
1
answer

How to use RadioButtons on Xamarin Cross Platform?

I am a beginner in the universe Xamarin . How to insert RadioButton to "Male" and "Female" in Cross Platform in xaml?     
asked by 17.10.2016 / 19:57
1
answer

Using the bindingNavigator

I fill in a dataGridView via SQL and fill in a dataTable . I would like to associate a bindingNavigator with this dataGridView . I can not. Follow the code. string arquivo = System.AppDomain.CurrentDomain.BaseDi...
asked by 17.10.2016 / 01:17
3
answers

C # hangfire stopping

I'm using hangfire with IIS in an ASP.NET MVC application with C #. I have a Task running every 5 minutes, however the application is stopping. This occurs in a variable period of time, sometimes it runs for 3 hours and sometimes for less tim...
asked by 15.07.2016 / 15:04
1
answer

TreeView - click the Node and open specific screen

I have TreeView , with some configuration items: I would like to double click on a node it opens a specific form, the event of double-clicking and opening the form, is OK, the problem is how do I distinguish a node f...
asked by 30.07.2016 / 14:54
1
answer

Add the same with the click event

I have in my wpf code a listbox with the name "lstBox" (left invisible), and inside it a listBoxItem with a label and a textbox. Outside the listbox, in the same window I have an "add item" button (clicking would make the listbox visible). I wou...
asked by 26.07.2016 / 21:51