Questions tagged as 'c#'

2
answers

Doubt on how to select a record via linq

I have a table, where I only write scripts . There is a field, where I separate whether it is technical script or central script. There is a TipoScript field that char is "C" or "T". This table was not well done without thinking about th...
asked by 21.05.2014 / 20:43
1
answer

Simulate click on WebBrowser using C #

I wanted to know how to do a click on an element of a website (at the end), I would like it to click on that element. href="javascript:;" class="spot drugdealer" title="Traficante de drogas" I tried to use .GetAttribute() , along wi...
asked by 25.05.2014 / 06:26
1
answer

ComboBOX which best method: OnSelectedIndexChanged via autopostback or Jquery?

I have the following DropDownList in ASP.NET Webform <asp:DropDownList ID="DDL_Categoria" runat="server" CssClass="form-control" AppendDataBoundItems="true" > <asp:ListItem Value="" Selected="True">Selecione</asp:ListItem> &l...
asked by 23.05.2014 / 22:04
2
answers

Error in making an Insert in the bank

I'm trying to save some data in the database and I'm getting this error:    The INSERT statement conflicted with the FOREIGN KEY constraint "FK_dbo.Domains_Dom.Alumni_Alumni". The conflict occurred in database "aspnet-CEF01-20140410111235", t...
asked by 21.05.2014 / 15:27
2
answers

How best to insert an array into the database

I would like to know how to insert an array into a table in the database. I could use a foreach but I would like something performatic because I will work with a large number of data. foreach (var item in registros) { s...
asked by 07.04.2015 / 22:54
1
answer

Doubts in developing systems Desktop C #

I'm starting to program in C # and I'm having some doubts. I would like to know where to start, for example: I have a desktop system that I use in one company, I needed to develop another one in the same pattern. It has for example this dialo...
asked by 10.04.2015 / 15:38
1
answer

Synchronize databases via Webservice C # asp

I have databases on both the server and the client and would like changes made to one to be sent to the other through a Webservice. For example a new row is added to a table on the server then this new insert is sent to Webservice, which should...
asked by 18.12.2014 / 18:59
1
answer

How to send XML from NFE consuming SEFAZ webservice

Recently colleague Rafael Corazzi posted a routine to send the XML consuming Sefaz webservice . At one point in the routine, it instantiates a class: SefazWebRequest request = new SefazWebRequest(); I'm using this example in my project,...
asked by 29.12.2014 / 19:21
2
answers

MySQL Licensing

I'm starting to develop a system that runs on Android, Web, and Windows. The 3 versions should talk to each other and the three versions will have the same functions will be a port of the same application for 3 platforms. The system will be d...
asked by 26.12.2014 / 00:04
1
answer

Popular a List with database data accessed by EntityFramework

How popular is my List in C #, with the data stored in the database accessed through EntityFramework? Current code: public static IEnumerable<Contato> GetAll() { return new List<Contato> { //DAqui pa frente nao se...
asked by 06.01.2015 / 14:10