Questions tagged as 'c#'

2
answers

Splash Screen in Windows Form C #

So far so good, but I did a splash screen and put it to run on the main form and it ran perfectly. After a while I always refresh the project with new functions and the splash main loads, but does not show the image. I have deleted and ev...
asked by 19.12.2014 / 13:55
2
answers

How can I create a DataGridView with Mongodb?

I want to display the DB data in a table, but so far I have been able to do it with a ListView . How can I do this but using a DataGridView ? using System; using System.Collections.Generic; using System.ComponentModel; using System...
asked by 05.12.2014 / 04:56
1
answer

Problem when exporting data from datagridview c # to excel sheet

Hello, I have the following code, in it I'm getting the data from the datagridview and exporting to an .xls, I'm passing everything as String, the texts, names, which are Strings, are normal, but there are numbers with until 44 digits that I p...
asked by 13.02.2015 / 12:17
1
answer

Error saving data from a session in the database

I'm developing a sales system. Follow the link: Save Request - ASP.NET MVC But when I finish the purchase and save the data in the database, I get the following error:    "An entity object can not be referenced by multiple instances of I...
asked by 03.12.2014 / 21:51
1
answer

How to add item in a request in asp.net c #?

I am developing a project that asks that items from a pizza restaurant be added to an order, not being a shopping cart, generating the order as if it were a cash program. I do not know how to add items to this request in a web project, any tips?...
asked by 19.11.2014 / 21:25
1
answer

Keep gridview data source in post-back

I have a gridview that is populated by a web-service with data coming from SAP. It can return up to 2000 row with 30 columns. This content is always the same, so when running the web service 10 times will always return the same content. This gri...
asked by 21.11.2014 / 02:24
2
answers

NullReferenceException in User Filter

In my project I made a filter to see if the user is already logged in. To prevent it from logging in twice. According to the answer What happens is that I am having a zero reference error and I do not know why. I am passing the ID...
asked by 01.12.2014 / 21:22
1
answer

How to mount a Select to join columns

I have a question that I do not even know if it is possible, it is as follows: I would like to perform a select that joins up two columns. Otherwise it would be: Table Person with the fields cod_people - name - rg - razao_social - cnpj C...
asked by 13.01.2015 / 00:51
1
answer

My repeater does not render in browser

I created a repeater and I can not render it. When I inspect the object, it does not appear. I took the code above it, called Analyze cadastral data and repeat after the repeater and I can see, but the repeater does not. What could be wrong? Bel...
asked by 14.01.2015 / 18:35
1
answer

Popular datagridview in C # with class with inheritance

Good people, I have the following situation: public class TiposMateriais { public int tipoCodigo { get; set; } public string tipoDescricao { get; set; } } public class Materiais { public int matCodigo { get; set; } public...
asked by 13.01.2015 / 01:01