Questions tagged as 'c#'

1
answer

How to pass data from a Dataset to an Excel C # worksheet?

I read sheet by sheet of a sheet, and I stored it in a DataSet . I'm having trouble passing this DataSet data to another worksheet. Can someone help me ? I have the second code: conn.Open(); string strConexao = string.Form...
asked by 11.09.2014 / 14:56
1
answer

How to handle multiple forms on the same page.aspx?

I have a page.aspx that I have several forms. One of the forms I placed runat="server" and is of type Textbox , I was able to get form data and insert it into the database. But I wanted to do the same with the other forms, but I do not know h...
asked by 22.09.2014 / 16:02
2
answers

Problems with types and conversions when filling a page

This is the error: An exception of type 'System.InvalidCastException' occurred in App_Web_fjskumyk.dll but was not handled in user code Additional information: Não é possível converter um objeto do tipo 'System.Collections.Generic.List'1[<...
asked by 23.09.2014 / 15:55
1
answer

Update modal content dynamically

I have a table with up to 10 listed services, and each row has an update button. When you click the refresh button, a modal window opens with the data in this row, as well as a form for change. However, I can not get the controller to return...
asked by 20.09.2014 / 02:07
1
answer

Error using RSAProtectedConfigurationProvider

I am making an example using RSAProtectedConfigurationProvider and it has generated an error, I am not able to solve the problem. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Co...
asked by 17.10.2014 / 21:36
1
answer

Popular DropDownList and insert with the chosen value

In my DB I have 3 tables: - Genero(IdGenero,Genero,Descricao) - Publicação(IdPublicacao, Titulo, Sinopse,IdUsuario) - PublicaçãoGenero(IdPublicacaoGenero,IdPublicacao,IdGenero) This last one links the first two. My first question is: Ho...
asked by 13.10.2014 / 01:53
4
answers

C # e.HasMorePage is in Eternal Loop

I'm creating a system for printing labels as follows: private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { Image newImage; Point ulCorner; int x = 0; int xn = 0; int y = 0; int yn = 0; bool x...
asked by 13.08.2014 / 16:22
1
answer

Insert data into the database via a dataGridview in C #

I have a form in C #: InthisformthereistextboxwhereItypethedayoftheweekandadatagridwhereItypethehours.Iputacolumncalledtime,withDataGridViewCellStyle{Format=t}manual.Butthe__:__maskisnotappearingatruntime.Iamusingthefollowinglooptosave.voidIN...
asked by 13.08.2014 / 14:34
1
answer

Compare text crystal report

Good afternoon. I would like to know how to mount a formula in the crystal report so that you see, if in the text the word "QTDA", if it exists it signals the whole cell with the red color, if you do not do anything ...     
asked by 28.08.2014 / 21:17
1
answer

Error ORA-12571 encountedred in Windows Service

I have a C # system running as a windows service, with Windows Server 2012 R2. Eventually when the service tries to communicate with the database (to make a query or to make an insert, for example) the communication between the windows server...
asked by 27.08.2014 / 23:35