Questions tagged as 'c#'

1
answer

Change WebService address at runtime - C #

I'm developing an application that should connect to a number of Web services depending on the user's location. For example :    If the user is in the city " A " he will connect to the Web service: 192.168.1.1:8010 if he goes to...
asked by 19.05.2014 / 16:44
2
answers

Get network path

I have a Form that is saved on the network that is mapped as \\BRJGS090\suporte$ on the Z: drive. This Form runs an application that is in the same folder through ProcessStartInfo , on the local computer it works normally but...
asked by 29.10.2014 / 01:29
1
answer

Differentiate ingredient product

I am trying to make a system for selling acai berry. In an açaí can add many ingredients like paçoca, milk powder, fruits and etc ... Açaí can also be sold in pots of 250ml, 500ml and 750ml. Depending on which pot is sold, an N amount will be re...
asked by 27.10.2014 / 18:10
2
answers

AccessViolationException - Attempt to read or write to protected memory

I'm working with OPENCVSHARP (OpenCV) to access a Ps3Eye camera in C #. But I'm having a serious protected memory problem! I use visual studio 2010 in Windows7. Code:IntPtr_ptr;publicIntPtr_ptrBmpPixels;staticIntPtr_camera;staticintw=0...
asked by 16.06.2014 / 16:55
1
answer

Make a SQL query with Entity Framework 4

How do I perform a query on the database using Entity Framework 4 by passing a previously stored string within a StringBuilder . The reason is that the SQL query string is giant. I know it is not a good practice, but for now I will ha...
asked by 16.06.2014 / 20:48
1
answer

Upload Image using WebService C #

I would like some help to know how to upload an image using webservice c #, I've tried several forms and several examples but I could not. I have tried to convert an image to base64 string, I did not succeed. The form for communication betwee...
asked by 20.06.2014 / 20:27
1
answer

Show null results through LEFT JOIN with Linq!

I have a SQL query: SELECT A.Codplano, A.Secao, A.Setor,A.Subsetor,A.Contato, ISNULL(B.Subord,'NÃO LANÇADA')AS Situacao FROM vwPLANODIN A LEFT JOIN LANCADA B ON A.Codplano = B.Subord and B.Data = '2014-06-10' WHERE B.ID IS NULL and A.Sitio =...
asked by 14.06.2014 / 17:21
2
answers

@ Html.CheckBoxFor Works on GET, but not on POST

I have the following model: public class MEUViewModel { public List<Obj1> Obj1s { get; set; } public List<Obj2> Obj2s { get; set; } public int IDMeu { get; set; } public int IDMeu2 { get; set; }...
asked by 22.07.2016 / 15:11
2
answers

Problems with Web.Config

I'm having difficulty using multiple web.config on my system. In my web.config main I have the following configuration: <configuration> <appSettings> <add key="BASE_URL" value="/mvc/" /> </appSettings> &l...
asked by 28.08.2014 / 19:49
1
answer

SubModel Conditional Validation MVC 4 C #

I have the following problem (I will simplify the classes to facilitate understanding): public class Class1 { [Required] public int? Id_Estabelecimento { get; set; } public string Nm_Nome { get; set; } } public class Class2 {...
asked by 26.08.2014 / 23:02