Questions tagged as 'c#'

3
answers

System.UnauthorizedAccessException in C #

Well, I'm trying to develop an automatic setup for a program I've developed. First, it would create a folder in C: / FolderName; Then it would drop a Github repository like .zip into this folder, then export the zip to it and finally remove th...
asked by 09.11.2016 / 17:48
1
answer

Display balloon popup on a Label

I would like to display a small message to the user, style those when passing the mouse, if I were not mistaken it would be the attribute    alt="my message" However I'm using asp.net-mvc-5 and I'm finding it difficult to do. My message,...
asked by 11.11.2016 / 20:25
1
answer

Right-click Popup

I'm trying to make a popup by right-clicking inside a GridView . I am using the event MouseDown and the event MouseUp to make popupControlContainer appear and disappear. But how would you make it appear where the...
asked by 06.09.2016 / 16:06
1
answer

Check for Permission to Read and Write to Folder with C #

I would like to check if the user is allowed to read and write to a particular path. Update: The folder will most often be on a network path.     
asked by 08.11.2016 / 18:27
2
answers

Prevent Seed from duplicating data

I'm using this code in Seed to generate values in my table, so I do not have to type in the database, when I change something in my code and need to give an update in the database, so it is not running, , the code below is for adding or updating...
asked by 08.11.2016 / 02:22
1
answer

Sending form to Pagseguro

I have this form @using (Html.BeginForm("PacoteAdd", "Pacote")) { <input type="hidden" name="email_cobranca" value="*****@hotmail.com" /> <input type="hidden" name="tipo" value="CBR" /> <input typ...
asked by 09.11.2016 / 03:11
1
answer

How do I get the view id if I have asp.net mvc?

I have the following situation, in my _Layout I'm checking: @{ var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["Controller"].ToString(); var view = HttpContext.Current.Request.RequestContext.RouteData.Val...
asked by 08.11.2016 / 17:04
2
answers

How to make a transform.Translate () smoothed in unity5?

I need to translate a GameObject to any destination, but the transition must be smooth at a constant rate in such a way as to last the time that is passed by parameter. For example: void Move(GameObject obj, Vector3 destination, float d...
asked by 04.09.2016 / 10:24
1
answer

How do I retrieve data entered in GridView and then save it to the database?

On a certain sign-in screen, I have a GridView with some blank lines, so the user would have to enter the information on those lines, and then when clicking the save button, make the INSERT in the bank. p> How would you do when t...
asked by 31.08.2016 / 22:06
1
answer

How to make NumericUpDown return to the minimum value when the UpButton is clicked and the current value is the maximum?

I'm using NumericUpDown in an application where the user can set a desired time for any action to be taken. There are three NumericUpDown : one for the hour (from 0 to 23 ), another for minute ( 0 a 59 in>) and another for sec...
asked by 02.09.2016 / 15:04