Questions tagged as 'c#'

0
answers

Error in calling a Python application (+ OpenCv) in Visual Studio 17 (C #)

I'm trying to make a "control panel" that each button will call a Python application (+ OpenCV) but when I run it through the PyCharm IDE, or straight from the folder, it runs perfectly, but when I make the call through Visual 17 , it appears th...
asked by 09.04.2018 / 05:01
1
answer

C # function in the controller to receive an array

I need to get an array of select and send to a function in the controller, but it always arrives as null, even sending the complete array. Here is the code: Controller: [AcceptVerbs(HttpVerbs.Get)] public ActionResult GetLocais(int [] idcT...
asked by 28.03.2018 / 22:18
0
answers

TFS - Error using browserify

Hello, I have a project in which I am using TypeScript but instead of using the VisualStudio compiler, I created a task in the Gulp that with the help of browserify compiles the .ts files My problem is that my machine works fine but when I...
asked by 28.03.2018 / 23:33
0
answers

Does not update value

The calculation and the values returns everything to me, however when it comes to overlapping the previous value and adding the new it does not change, it keeps the old one. Buy Controller: public ActionResult Update(CompraModel viewModel)...
asked by 27.03.2018 / 17:23
2
answers

Javascript Date Manipulation

I need to get a date from an input and add a few years in it and display the result in another label. Ex = 01/01/2017 - User Selected Date      01/01/2020 - Date computed by js     
asked by 28.03.2018 / 16:28
0
answers

Creating project templates in vs with existing projects

I'm trying to create a project template in vs 2017 using SideWaffle , the problem is that it references existing projects in separate folders. ex: sln: project A      libraries \ project b      libraries \ project c The projec...
asked by 04.04.2018 / 16:40
0
answers

Doubt Session Asp.net

I need to pass the id of a user by a session, as it is happening to mix users, since it was being written to a variable, has some way, to continue passing through the variable without having to change throughout the project, because in every pro...
asked by 04.04.2018 / 16:32
0
answers

Add photo httpPostFileBase using web api asp.net mvc

I'm trying to add a photo to an employee's registry. All other data such as name, cpf, address and etc are registered normal, but the photo is not, I'm simply taking the name of the photo and saving the way in the bank as I did in other projects...
asked by 03.04.2018 / 15:55
0
answers

NHibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing. Type:

I'm having this problem, does anyone know how I can fix this problem? This is my Nhibernate config code. public class NhibernateHelper { private ISessionFactory sessionFactory; public static ISession GetSession() { re...
asked by 03.04.2018 / 15:39
1
answer

Problem with accentuation when exporting data from Sql Server to Excel

I have the following code inside a button responsible for performing the export of the data from my table to excel. string caminho = "c:\caminho"; // criar um arquivo para escrever using (StreamWriter sw = File.CreateText...
asked by 03.04.2018 / 16:36