Questions tagged as 'c#'

1
answer

Error in Chrome when downloading Excel created by ReportViewer

I have the following code in the view: <% using (Html.BeginForm("GeneraReporte", "Libro")) { %> <input id="format" runat="server" name="format" type="hidden" value="xls" /> <input type="image" src="<%:Url.Content("~/I...
asked by 16.09.2016 / 15:51
1
answer

How do I make an internal control of a control detect the DragEnter and / or DragOver?

I'm coding a form where I have to do is drag an item from a ListView to a User Control that contains a FlowLayerPanel . This user control has different behaviors such as adding new internal controls to the FlowLayerPanel . Adding an int...
asked by 02.03.2016 / 18:50
1
answer

Doubt Threads in C #

Good morning I am studying C # and I have found the need to make my program pause, until x seconds pass or until the same user generates an event. I tried to transfer my knowledge of java threads to C # but it does not work correctly. My questio...
asked by 03.11.2018 / 09:43
1
answer

Change data in DataGrid

I'm working with C # in WPF, I'm using the data from an api, I have a datagrid that I filled with user data such as name, email, phone, status but in state it gives me 1 if it is active and 0 if it is deactivated , what I need in the table to sh...
asked by 01.11.2018 / 22:15
1
answer

Doubts about Digital Signature in C #

I show this code since with this code I currently generate my digital signature, what I want is to add to my signature the NameSpace to SignedInfo so that it looks like this:    SignedInfo xmlns="http://www.w3.org/2000/09/xmldsi...
asked by 11.10.2016 / 21:47
1
answer

Get the name of the computer where a user is logged in

We have a system that seeks and obtains the information of all the workers of an active directory, we want to know how we can do it to know that TEAM within the company network is using at that moment worker when we look for it, for example:...
asked by 25.01.2018 / 21:14
2
answers

Authorize mvc user access

I am implementing the use of user permissions with the Authorize , I have correctly implemented its operation, but I would like to know how I do that when the user is not authorized to access that view in the controller Authorize do...
asked by 30.05.2018 / 16:09
2
answers

Get checkbox record value in controller MVC C #

I have an MVC C # view in which I show the employee records of a specific region, plus I have added a checkbox so that the user can select one or more employees with whom I will work later. this is the model I use in the MVC view public cla...
asked by 01.05.2017 / 00:33
2
answers

Why does it return zero value?

in my programming class in form I have to show the area in a message, only that they want the data of height and width to get it from the inheritance of the class and in the way that the I'm doing it always returns zero in t...
asked by 04.10.2018 / 08:54
4
answers

Obtain object type in c #

Suppose the following code: public struct Result { public object objectResult public Type objectType; } Result resultado = CualquierFuncion(); The CualquierFuncion function would be something like this: public Result Cualq...
asked by 26.05.2017 / 15:56