Questions tagged as 'c#'

1
answer

Identify client WCF Service (intranet or internet)

I wonder if it is possible to identify the call if a WCF Service on the server, if it was called by a client inside the network (intranet) or outside the network (internet). I am implementing data compression to be trafficked, but if the cons...
asked by 23.01.2015 / 19:30
1
answer

Process does not close in the task manager

I have the following code snippet to close my winform application: private void frmAgent_FormClosing(object sender, FormClosingEventArgs e){ if (MessageBox.Show("Deseja realmente fechar o sistema?", "Atenção!", MessageBoxB...
asked by 28.01.2015 / 13:17
0
answers

Decrypt xml file passing the certificate password

I need to decrypt an XML file, but I've already passed the certificate password. I can do similar actions, like signing the file without the certificate driver asking for the password. Following: SecureString senha = new SecureString(); foreac...
asked by 23.01.2015 / 12:03
1
answer

Postback checkbox asp.net with Plugin Switchery

I'm putting together a list of records in a table with asp.net. I create for each line a checkbox to perform an action through postback every time the checkbox is checked or unchecked. I use the Switchery plugin to style this checkbox, but when...
asked by 13.02.2015 / 18:10
1
answer

How do I return to the View the items checked by the CheckBox?

I'm developing an ASP.NET MVC project. In my registration form, I have a checkbox where I select the items that I would like to add in the DB. My edit form, I have to get these items checked and show in the view: all the items that are in the gr...
asked by 13.02.2015 / 13:25
5
answers

How do namespaces work in C #?

I'm studying C # and I came across namespaces . How does it work and when is it applied? If possible, some basic example.     
asked by 01.04.2014 / 01:17
1
answer

Error filtering data from table Datatable

I have a ViewBag where I populate a select with a list of years. When selecting a specific year, filter the table with data only from those years. To do this filter, I'm using a script: $(document).ready( function() { // any t...
asked by 08.03.2015 / 15:27
1
answer

Search for uncommitted data

I was doing tests regarding transactions and I saw that if I conduct a search of the registered and uncommitted data they are returned. In the entity framework this does not happen, and from what I researched behind the scenes he works with tran...
asked by 13.12.2014 / 00:41
2
answers

How to run a flash (.swf) file in an ASP.NET page?

I have an ASP.NET WebForms application and I want to know how to execute a flash (.swf) file in a div of an ASP.NET page.     
asked by 04.12.2014 / 21:43
0
answers

C # -Inserting images in a database

I am making a product registration. I can insert the image however when I use a comboBox to make all the data appear the image appears cut in half. Here is the code for the insert button: byte[] imageBt = null; FileStream fs...
asked by 12.12.2014 / 21:01