Questions tagged as 'c#'

1
answer

There is some other way to give body to the snake in c #

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Snake { struct Position { public Position (int x, int y) { X...
asked by 01.06.2016 / 19:20
2
answers

DataGrid shows red lines

At the end of an information load the DataGrid shows me some red lines. Can you help me !!!?     
asked by 30.05.2016 / 22:36
1
answer

Implementing IRepository in IUnitOfWork

Hi, how can my UoF interface inherit from IRepository? having this: public interface IRepository<T> where T : class, IDisposable IoW public interface IUnitOfWork : IRepository { int Save(); }     
asked by 01.04.2016 / 18:00
1
answer

Have control of a StatusStrip that belongs to a Form1 from Form2 C #

I have a% main% co that contains a status bar Form with several StatusStrip . I must have control of StatusLabel from another form to change the StatusStrip message depending on what I'm doing. For example, if I put...
asked by 31.03.2016 / 16:07
2
answers

EPPlus Exception from HRESULT: 0x8003001D (STG_E_WRITEFAULT)

How to access an Excel file using EPPlus? The code seems to be fine .. ViewBag.Message = "Cargar Almuerzos"; byte[] file = System.IO.File.ReadAllBytes(@"C:\MENÚ DEL 09 AL 13 DE MAYO.xls"); System.IO.MemoryStream ms = new Sys...
asked by 13.05.2016 / 14:43
3
answers

Do not update property in BBDD from Controller

I need to show in a View (Web form) a property of the Data Model that comes from a DB and that after performing the Submit, the Controller's action does not perform the Update on those fields in the DB but with the rest of properties of the Mode...
asked by 11.05.2016 / 12:08
2
answers

Can not find resources (javascript, css) when deploying project in IIS

I would like to ask about a problem that I have been experiencing with IIS. Let's say that I deploy my site in C:wwwRoot / MyProjectName / (todos los archivos de sitio aquí ) . The deployment seems to work without any problem. Then w...
asked by 23.05.2016 / 15:43
2
answers

Query linq, matching properties

I'm working with Entity Framework code first, I'm putting together a query but from my entity I only need the first two attributes for which I had to create another class with the attributes I need to not bring me the whole entity. public clas...
asked by 24.05.2016 / 23:24
1
answer

How to consume a web service in jQuery

I have a client in C # that consumes a web service by passing several parameters. What I'm looking to do is translate this call that is made in C # and make it in jQuery. I have searched several forums but the information is not complete....
asked by 26.04.2016 / 21:22
1
answer

How can I play sound on two different audio devices? (headphones and speakers of my pc)

I wish that, when an event is launched in my application, a sound will be reproduced both in an earphone (if I have it connected) and in the speakers of my pc. I was testing with WaveOut but it did not work. Thanks     
asked by 16.06.2016 / 21:51