Questions tagged as 'c#'

1
answer

When Generating PDF with Rotating, viewPDF is not displayed - error 404 - Works Local only

I'm trying to generate a PDF with the Rotary, I usually get it in the Location, but when I publish it it displays error 404. I have already added the DLLs in the project. public IActionResult ConfirmaReimpressaoCertificadoPDF(Certidao certi...
asked by 27.09.2018 / 16:23
0
answers

Why does Linqpad say that a Network directory exists, while .NET does not?

I have a network directory in "\10.88.0.1\rec" . However Directory.Exists returns false while debugging in visual studio. This is strange, since LinqPad returns true . Are there any differences between the linqpad's...
asked by 27.09.2018 / 18:01
1
answer

How to copy a file from the network to my computer using C #?

I have a desktop application that needs to copy media files from a server, videos and images. The server is on the same network as the terminal on which the program is installed. The problem is that this terminal will not be logged in with usern...
asked by 24.05.2016 / 21:44
1
answer

How can I break lines of an ErrorMessage from a Data Annotation?

I have this property and Data Annotations for it: [Required(ErrorMessage = "Campo orbgiatório.")] [RegularExpression("^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$", ErrorMessage = "The password must contain: \n * Pelo menos 8 caracteres; \n *Pelo me...
asked by 04.10.2018 / 15:02
1
answer

How to get data from the Client Side to the Server

Hello. Developed an application in .NET CORE and the access page will pick up the geolocation of the client with the coordinates of Longitude and Latitude. However, I made this code using javascript, and the same will run on the client side, I...
asked by 30.09.2018 / 01:30
0
answers

How to disable fast slider movement

Follow the code below: <Slider Name="sliProgress" Thumb.DragStarted="sliProgress_DragStarted" Thumb.DragCompleted="sliProgress_DragCompleted" ValueChanged="sliProgress_ValueChanged" /> When you hold mouse cl...
asked by 30.09.2018 / 01:16
1
answer

Button created Dynamically does not fire asp-action - core 2 MVC

I have a cshtml (view) on this page I use a typed model and inside I use a POST form, I create a div (dynamically with ajax) with some components, ALL appear normal, but the button triggers an action on the controller does not work, if I leave s...
asked by 27.09.2018 / 14:50
1
answer

Get image from the "Resources" folder of android [closed]

Good morning, I have an android application made in C # via xamarin. In this application, you have a report made in HTML that is displayed in a WebView. This report needs to display an image (PNG) that is stored in the Resources folder of my...
asked by 27.09.2018 / 14:26
1
answer

How to make text stay in txt in complete unity

The idea is to create an entry where the user enters data and gets registered in txt and can add other data as a simple agenda. The screen asks: enter your name: Enter your age: Enter your city: Save in txt and then add another set of data. I...
asked by 27.09.2018 / 13:50
1
answer

Error while executing Add-Migration Setup

When executing the Add-Migration Setup command to create the table in SQL Server in the PM the message below occurs even though I do the api project reference with the shared. The system even gets to process something, but soon gives this erro...
asked by 05.10.2018 / 15:42