Questions tagged as 'c#'

0
answers

Prevent query error

I have this query in Linq: var results = (from u in db.datos where u.IdLogin == id select u).ToList(); The problem arises when the user has not filled out their data and marks me an error since it...
asked by 13.02.2018 / 17:14
0
answers

How to know if there is an error in a validator C #

I have a form in Webforms where an Email is entered. You have two validators that work correctly: RequiredFieldValidator, RegularExpressionValidator. <asp:TextBox ID="txtEmail" runat="server" MaxLength="100" placeholder="Ingrese Email" C...
asked by 13.02.2018 / 15:22
2
answers

How to fill gridview asp.net c # sql from behindcode? [closed]

I have a webform application in ASP .NET with C # and I want to fill a gridview from the webform.aspx.cs. There is some way to fill it "only" when entering the page, or it must be only with a click event. Could you tell me how to do it? I will g...
asked by 07.03.2018 / 18:37
2
answers

How can I make a progressbar restart once it is completely filled in C #?

I have the following code, and I want it to restart when it reaches the end. public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) {...
asked by 13.02.2018 / 01:51
1
answer

How to get a column of a grid to reduce the field instead of seeing the right part of this stop seeing the left

In the grid the Template field Currently to see the name of the entire template you have to do the long field until the name enters to see the end of the template name. The end of the template name is what differentiates the template from the re...
asked by 13.02.2018 / 08:51
0
answers

Error in reverse arrangement

I made an arrangement of 10 elements, and then another arrangement with the same amount of the 1st but the content is inverse, example: List 1: 1. 20 2. 34 3. 12 List 2: 10. 20 9. 34 8. 12 And so ... static void Main(stri...
asked by 13.02.2018 / 06:25
0
answers

Failed to abort a thread

This is my method that when trying to fill a dgv I want to show a form with a load gif. Once the dgv has been filled in, I want to close the thread (I close it when the normal flow ends or when I skip an exception). When trying to run t...
asked by 15.02.2018 / 13:04
0
answers

Export I want the data from a datagridview to pdf c #

I want to export data from a datagridview to pdf. Program in c # visual basic 2012 I found this code but I do not know how to change or insert the gridview data // Creamos el documento con el tamaño de página tradicional Doc...
asked by 12.02.2018 / 04:59
0
answers

Problem with Basic Authentication

I have a project developed in Web asp.NET web api (WebService) which uses a basic authentication security. On the other hand I have an application developed in C # which calls the methods (WebService) to perform some processes. The problem is th...
asked by 12.02.2018 / 10:56
0
answers

Share variables between windows forms

How can I share variables between windows forms and windows controls? I have the following in control: if (oTcConfig.ShowDialog() == DialogResult.OK){ ////Asignamos los valores introducidos por el usuario a las variables internas ConfData.T...
asked by 12.02.2018 / 10:35