Questions tagged as 'c#'

0
answers

WinForms used in different projects, WCF reference error

I have a product search form, I want to use it in product requirements, product consultation, in everything related to product search, use it in different projects as a link, but when I open it in the next project, with the same reference name t...
asked by 25.05.2018 / 17:01
0
answers

Problems updating from a c # .aspx form?

Good day, I have a capture form in c # .aspx, where I generate a data capture of a personal, I use entityframework, the design of the table is as follows: The problem is that when the same form is opened by 2 or more users and the upda...
asked by 25.05.2018 / 16:07
0
answers

Build a UserControl based on a file (WPF)

Suppose I have this code in XAML <StackPanel> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="4*"/> <ColumnDefinition Width="*"/> <ColumnDefinition...
asked by 25.05.2018 / 16:35
0
answers

System.ArgumentException: 'Unsupported keyword:' metadata '.'

How do I solve the error?    System.ArgumentException: 'Unsupported keyword:' metadata '.' which tells me the line conec = new SqlConnection(conexion); This is the complete code: using System; using System.Collections.Generic;...
asked by 17.05.2018 / 21:52
0
answers

Ellipses do not change color in UWP

I'm doing a project on Raspberry Pi, using Windows IoT. Specifically, I'm doing a traffic light with LEDs and on the screen of my app I also drew a semaphore with ellipses. Ellipses "off" must have the lightgray color and "lit" their correspondi...
asked by 17.05.2018 / 22:28
0
answers

how to send an email with outlook in windows 10 from an app in c #

I'm doing an app in windows 10 that sends emails through outlook, for that I'm using the library Microsoft Outlook 15.0 Object Library, the problem is that I can not link outlook to the application, this is the code to send it private void env...
asked by 16.05.2018 / 09:05
1
answer

Encrypt audio url to block access to the mp3 resource

I have a list of audios and two types of users. Some can [play] and others [play and download]. The audios charge them dynamically after a query to the BD and I show them with the following code: <audio controls="controls" controlsList="...
asked by 15.05.2018 / 23:43
1
answer

read and close xml file

I am using this method to select a value from an xml file. The problem is that this xml file is used by another program, that program tells me that the file has already been opened and does not proceed to perform the function. What I need is...
asked by 21.05.2018 / 20:18
0
answers

how to delete a record from a table using linq and sqlserver and c #

someone some example code how to delete a record from a table using linq and sqlserver and c # I want the record to be deleted when I press the red line what is stored in a sql server table but do so by calling a store procedure    ...
asked by 18.05.2018 / 06:39
1
answer

Error in AjaxOption () ASP.NET MVC 5

I'm a novice and this is practicing the use of AJAX in ASP.NET MVC. I have a partial view in which I want to have a form with Ajax.BeginForm () in which I can enter a number and through Ajax, when I press it, I multiply x2 and the result show...
asked by 22.05.2018 / 18:50