Questions tagged as '.net'

1
answer

Using threads in C # without storing in variable

If I start an thread anonymously: new Thread(chat).Start(); and then instantiated it in the same way, does it overlap the other thread ? If not, how should you kill the first thread .     
asked by 10.04.2016 / 12:22
1
answer

How to use Generic Method with Dapper?

I have 2 methods of a generic repository public TEntity ObterPorId(int id) { return Db.Set<TEntity>().Find(); } public IEnumerable<TEntity> ObterTodos() { return Db.Set<TEntity>().ToList(); } But I want to use Dap...
asked by 22.03.2016 / 03:44
1
answer

Argument data type xml is invalid for argument 1 of len function

I'm mapping a property to the xml-type database using Migrations . public string Xml { get; set; } this.Property(t => t.Xml).HasColumnName("Xml").HasColumnType("xml"); However, querying the class using Linq returns the error. _...
asked by 23.02.2016 / 14:59
1
answer

Text inside a picturebox

I want to do this in PictureBoxes so when I move the mouse it shows the message that I wrote. How can I do this? Remembering I use the Visual Basic 2010     
asked by 11.02.2016 / 04:53
1
answer

Communication / .NET authentication for PHP

I need to implement an authentication system on a page. The scenario is as follows, I have a page that can only be accessed by authenticated users who come from a site (under ASP). This is the client side. I thought of a scenario where on...
asked by 15.04.2016 / 12:09
1
answer

Method inside method or class within class

Created methods Above(), Below(), Highest(), Lowest(), Evens(), Odds(), Matching(), Repeating(), Unique() ... I need to create a structure / implement these methods one inside the other, as if they were organized in directories, within...
asked by 04.04.2016 / 04:27
1
answer

Download file via ashx

I need to do a Javascript method that calls an ashx (generic handler) that returns an array of bytes (a file). This file can be XML, TXT or PDF. Until then I solved the problem, but when the file does not exist, I'm redirected to another page, b...
asked by 02.12.2015 / 20:35
1
answer

How to delimit a txt file, that is, the line length should be 700 characters for all subsequent lines

I created a routine that reads some tables and generates rows as read. At first this is all right. but the txt generated exceeds the size of the fields, for example, one field has size 10 and another size 20 and another 15, the total would be 45...
asked by 14.01.2016 / 17:23
1
answer

Linq to SQL - Dynamic ordering by column index

I'm using a component called datatables.js ( link ) to display my tables and it has the ServerSide strong>, which I call, in Ajax, my list from somewhere. It sends the ordering, meaning by parameters. It sends the Index column to be sorted....
asked by 11.12.2015 / 20:34
1
answer

Read / Write information in .cds file

I have taken a project to develop in C #, the project is based on reading information from a .txt file and writing the information to an existing .cds file that is used on a system developed in Delphi. I searched for an API that...
asked by 10.10.2015 / 23:30