Questions tagged as 'c#'

2
answers

How to call method of a parent window when another daughter window is closed with WPF

Hello, I'm starting to work with WPF and my situation is as follows: I have a MainWindow screen, which persists the application. MainWindow calls a new RuleDetailsDialog screen on a given function. As soon as a process that closes the Ru...
asked by 11.07.2018 / 13:58
1
answer

My JavaScript / AJAX function is not converting Date to the correct format

Hello I have a problem with an MVC project. My View needs to return values in Date for some Text Boxes (from the selection of the record by a Data Table) so that the user can edit the record. The problem is that the data is not being shown...
asked by 12.07.2018 / 14:57
1
answer

How to simulate SSL in ASP.NET localhost?

How to simulate an SSL certificate in localhost , I use Visual Studio 2017, running ASP.NET MVC5. I need this because I'm running the Cielo API that only accepts SSL requests. Edit: If I change the property SSL Enabled to tr...
asked by 30.07.2018 / 15:57
1
answer

Creating a client-server architecture in C # [closed]

I made a N-tier test application (database access, presentation, business model, and transfer objects) worked quietly and I learned a lot about 3 layers and N layers. Now I want to make a program that is client-server and I have these doubt...
asked by 05.07.2018 / 01:33
1
answer

Download File in asp net mvc

I have files that have been uploaded to the wwwroot / files / folder of my project. I want to download these files but when I click the button nothing happens. public ActionResult DownloadFile(string arquivo) { if (arquivo == null...
asked by 10.10.2018 / 16:00
1
answer

How to set upload a photo as required

I'm developing a page, so job seekers can enter and fill in their personal information, one of these information is the photo, which has to be mandatory. Then I created the following model: { . . [Display(Name = "SolidWorks")]...
asked by 20.08.2018 / 18:14
1
answer

WPF C # Current position of MDIChild?

I have implemented a MDIParent with 3 children. I want to know where the children are but I do not have access to any property, since: child.position is always (0,0). I have: <mdi:MdiContainer Name="mdiParent"/> Co...
asked by 28.08.2018 / 16:09
1
answer

Return Result of an IF executed by the Command Prompt (CMD) in C #

Hello, I'm trying to get a return from an IF line of the Command Prompt (CMD) with Visual Studio 2015 in C #, but I'm not getting it. The following code executes the CMD, inserts the directory path containing a C ++ (.cpp) file, and using the...
asked by 29.08.2018 / 14:59
1
answer

Passing Date parameters for queries

I'm having a problem when passing a parameter. I tried debugging by passing Date to string, but the problem arises that a number is expected instead of a character. After that I researched other ways and tried to pass parameters in the...
asked by 30.08.2018 / 14:19
1
answer

Use C # to install a program in silent mode by passing parameters

I'm trying to create a program that silently installs multiple programs Some programs that use simple "/ Q" parameters I got and worked out. but has a program that the parameter is large and can not solve I can not set a fixed path beca...
asked by 24.08.2018 / 22:30