Questions tagged as 'c#'

3
answers

validate telephone numbers in c #

Good, how can I validate phone numbers in c# but that it only recognizes numbers and () - in its respective format? I have the following code to validate number but not for the above. if (Char.IsNumber(e.KeyChar))//Si es número {...
asked by 31.10.2016 / 18:45
3
answers

Dll .NET Framwerok 3.5 with references to DLL 4.5 (Do not Compile) C #

I am making a class library (DLL) to create a automation for Dynamics NAV 2009. My idea is to create a DLL that contains another embedded Inside (I've done it before) using: link The problem is that in order for the auto...
asked by 01.02.2016 / 17:59
3
answers

Load data GridControl DevExpress using a DataTable

I'm using Windows Forms , GridControl DevExpress , SQL Server 2008 . I try to load a GridControl data using a DataTable . The code is as follows: var dtDatos = GetAll("SELECT EmployeeID, FirstName, LastName, Address FROM Employees");...
asked by 08.11.2016 / 00:03
2
answers

Create Stored Procedure to fill a table

I have a mobile application that calls different services that I have in c# with Wcf . The issue is that I have one of those services in which the user from the mobile sends an object called Medicion . This object has a list o...
asked by 09.11.2016 / 23:33
3
answers

How to download A pdf file in MVC 5 directly

I wish that when carrying out certain operations the file generated in pdf is downloaded directly and not displayed in the browser (chrome) byte[] fileBytes = System.IO.File.ReadAllBytes(@"\svr\dllo\Pendientes\" + nombrePDF); return Fi...
asked by 12.12.2016 / 15:16
1
answer

DataGridViewCheckBoxColumn Checked

I have a check in the DataGridView, I wanted to know if it is possible that every time a value is added automatically it appears as checked     
asked by 20.12.2016 / 14:48
1
answer

how can I validate a data model with mvc

Am I processing my save information through AJAX, sending parameters in a JSON string that I later get in the controller, how can I send error messages in the fields of the view that are wrong? $('#btnGuardar').click(function () {...
asked by 12.04.2018 / 01:28
1
answer

Help with matrix in C #

I am learning C# on my own and I have tried to make an array from other array but it tells me the following:    A nested Array initializer is expected This is the code: string[] a = {"pequeña","mediana","grande"}; string...
asked by 13.04.2018 / 21:57
1
answer

Problem installing nuget package

I'm working with MVVMCross and Xamarin.Android. And it seems that for some function (to do a binding of Mvx.MvxImageView) I need to install the package MvvmCross.Plugin.DownloadCache. When trying to install it, it returns the following error:...
asked by 13.04.2018 / 17:24
2
answers

Error creating class .CS with xsd.exe in VisualStudio 2015

I am creating a class with the xsd.exe tool and when executing the command I get the following error: Schema validation warning The element ' link '. Line 667, position 6. This is line 667 of the file <xs:element ref="ds:Signature" minO...
asked by 30.08.2017 / 21:33