Questions tagged as 'c#'

1
answer

How to convert from string to varbinary?

I am working in the c # language and I would like to know how to convert a string data to varbinary since I am doing a query to a database (SQL Server) and it returns the data in string and one of those data I need to assign it to a variable tha...
asked by 19.11.2017 / 01:14
0
answers

The name '' does not exist in the current context. C #

Good afternoon I have a functionality to generate an Excel file from a template. By clicking on a button the code is executed and the data contained in the variables "listTema", "listaProyectos" says: The name '....' does not exist in the curren...
asked by 15.11.2017 / 18:03
0
answers

Query token using HTTPS

I try to connect to the following address to obtain a token, I try it in the following ways, but in all of them I get a query error, these are the examples I use for the query and the routes as they are created: string client_id = "api-stag";/...
asked by 17.11.2017 / 17:05
0
answers

Visual Studio Error "Could not locate Java 6 or 7 SDK"

Hello everyone, I have an error compiling my Xamarin Forms project solution, I get the following error Gravedad Código Descripción Proyecto Archivo Línea Estado de supresión Error Could not locate Java 6 or 7 SDK. (Download...
asked by 28.11.2017 / 16:49
1
answer

Get data from a many-to-many relationship with EF and web-api

A simple question but I do not give. I have a many to many relationship between two Citizen entities and Topics (which is generated from the Citizen, Topics and CitizensTopics tables) And I have a Web-Api service from which I want to obtain t...
asked by 13.11.2017 / 16:39
2
answers

Start process in the background with C #?

I've been trying for a while, but I can not execute excel in the background. What I want is to do a service that opens an excel book every 30 seconds and closes it later. static void Main(string[] args) { while (true)...
asked by 13.11.2017 / 14:25
2
answers

Pass group of checks from a view to a contractor as a list or as a list, using a complex model c #

Greetings The issue is that I have a complex model which I am invoking data from 2 normal models to take it to the screen and create a screen with multiple check with the intention of saving them using an ActionResult Here is the complex mode...
asked by 14.11.2017 / 20:18
1
answer

SQL scripts contained in EXE

I have this scenario, a set of several scripts that I need are contained in the EXE to avoid modifications on the part of the user and that are: 1) creation of the database 2) inserts of the teachers 3) inserts of the test data When execut...
asked by 11.11.2017 / 08:34
1
answer

Master Data Web Service

Hi, I hope you are all right, I have a small problem with a web app that I am trying to do in C # and that consumes the Web service of the Master Data Services, specifically when I run the program this is the error that appears to me    "Secu...
asked by 09.11.2017 / 16:15
1
answer

How to copy "n" columns and "n" rows of excel to paste them into a datagridview with ClipBoard in C #?

My doubt arises since I try to paste the data of "n" columns and "n" rows. Since I'm trying with ClipBoard but it does not hit me the information I have in the clipboard. private void PegarBtn_Click(object sender, RoutedEventArgs e) {...
asked by 09.11.2017 / 16:19