Questions tagged as 'c#'

2
answers

Context trying to delete 2 times the same record

I'm having a problem, in fact it should be the lack of knowledge even at the time of deleting a record using Entity Framework 6. When I try to delete a record that can not be deleted because it has references, it gives the following error:...
asked by 15.12.2015 / 17:13
1
answer

Fluid mapping composite nhibernate key with firebird bank

I am having difficulty in composing primary key mapping using fluent nhibernate. I have the following class: public class NotaItem { public NotaItem(){} public virtual int Id { get; set; } //chave primaria public virtual Int16 Nu...
asked by 02.02.2016 / 18:15
1
answer

String returning empty

I'm trying to get me to enter the .zip file, select a single file named mcmod.info and save it to a MemoryStream temp. I followed it as this link in StackOverflow, but when I read var ms = new MemoryStream() using a...
asked by 03.02.2016 / 14:58
2
answers

DropDown field increment

Well, I have the following problem. I have to use a function in JavaScript or JQuery to add new fields to populate and save in the database. In these fields I have to use a DropDown, but I do not know how I'll get the data from the database....
asked by 16.12.2015 / 18:26
1
answer

How to make it redirect

I made a C # application, in addition to performing the basic functions, I want to be able to run with batch scripts, but the problem is that I run Console.WriteLine and it does not write anything in the CMD window. using System; usin...
asked by 17.12.2015 / 12:46
2
answers

How to display a modal using the compoent button of C # and bootstrap?

If you use <button type="button" data-toggle="modal" data-target="#ConvenioOk">Teste </button> , modal opens. But I have to use the C # button because of the event. The button calling the modal is thus <asp:Button ID="bt...
asked by 08.12.2015 / 02:24
1
answer

DataGridView Handling

I have to display an object list in a DataGridView I'm doing as follows: class EntradaModel { int codigo, motivo, anterior, quantidade; string observacao, tipo; DepositoModel deposito = new DepositoModel(); ProdutoModel produt...
asked by 07.12.2015 / 15:03
1
answer

Calling javascript from within the code behind does not work

This is my role: <script type="text/javascript"> function montaDataSubstituicaoPrestador(dt_exclusao) { var arrData = dt_exclusao.split('/'); var exclusaoFormatada = arrData[1] + '-' + arrData[0] + '-' +...
asked by 07.12.2015 / 17:40
1
answer

Manipulate one item at a time in the API

I have an API that does the POST of Item in the database, but before doing POST it makes a GET to get a code for the Item that will be saved. NOTE: This code can not be repeated in the database, it must be unique. When sending an...
asked by 31.12.2015 / 13:06
1
answer

How to calculate the first 4 bytes of an Address ex: 00F28758

I would like to understand how to calculate the 4 Bytes of an address and then use a ReadProcessMemory . I just wanted to understand how to calculate this because every time I try it goes wrong. Let's say I have a Address 181B...
asked by 25.10.2015 / 04:06