Questions tagged as 'c#'

2
answers

Error trying to filter records using a stored procedure

I'm trying to filter records using a stored process and when I start entering the title of the record in the textbox I get an error. Alamacenado procedure CREATE PROCEDURE filtrar_articulo @filtro varchar(45) AS BEGIN SELECT titulo,...
asked by 04.07.2017 / 17:23
0
answers

how can I delete all the elements of a vector? [closed]

The program that I do is from a restaurant, once the order is placed, and it prints invoice and those things, I want the data stored in my vector to be deleted.     
asked by 22.06.2017 / 04:14
1
answer

Problem when loading data in a table

I have the following page: <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div class="row-fluid"> <div class="col-lg-12"> <h4 class="page-header">Productos</h4...
asked by 19.06.2017 / 20:02
0
answers

Dialog is repeated twice C # WPF

Good afternoon, greetings. Lately I have had a problem with sampling a Dialog in a formload, I am currently using C # in conjunction with sql server and implemented the UI of my program with Mahapps.metro. My code is as follows: private as...
asked by 24.06.2017 / 18:13
0
answers

Save the connection in the Setting of C #

Good evening, thank you all in advance, I continue to pass my application from VB to C #, and with your help I can read an ini file, change the database in the chain to which I want to connect, now I have days trying to save the new string in th...
asked by 18.07.2017 / 02:08
1
answer

Help with ListBox

I need you to help me with this part of my code in VB, in the ListBox I have to show an IP address to verify certain data that I have to show on screen when I run the program I always get a Warning of    ArgumentException occured Empty pat...
asked by 09.06.2017 / 18:34
1
answer

Deselect list C # objects

I'm trying to put together a simple program to practice what I've seen in the faculty, it's some xml files. The program is made in windows forms, and I need to get it to store objects of my own class, but I have a problem when I try to perform,...
asked by 31.05.2017 / 17:17
1
answer

OnClick does not run after OnClientClick

I have a form with a button, when I put the button (this button actually use it for several things changing the name and using flags in the method that defines the click) this executes the JavaScript in the client but never reaches the code -beh...
asked by 30.08.2017 / 22:16
1
answer

How to handle DB exceptions in EF

I have this code that tries to save the model in the database and makes two catch one for the validations of EF and the other generic. It does not give me any error of the first catch but in the second it gives me an error of a foreign key I thi...
asked by 25.05.2017 / 12:25
0
answers

Advapi32 LogonUser Impersonate And WebClient with Network Credential

A week ago I was commissioned to do a communication project with a Webservice whose requests required a certificate. To obtain that certificate I was provided with a windows user along with his password and a network path where that certificate...
asked by 22.05.2017 / 08:57