Questions tagged as 'c#'

0
answers

Why do I get the error of Could not load type 'Administrators.Global'?

I want to run my application but I can not because it flags me the following error:    Line 1: <% @ Application Codebehind="Global.asax.cs"   Inherits="Administrators.Global" Language="C #"% > with the following text:    An error...
asked by 10.05.2018 / 19:36
0
answers

Start a vbs from the resources

My question is simple, would it be possible to start a vbs from the resources using process start and reading the manifest of the file? Or is the only way possible is by writing to disk? Assembly.GetExecutingAssembly() .Ge...
asked by 10.05.2018 / 15:19
2
answers

Url with parameters does not work in MVC

I am developing a project in mvc it has been working fine, but I have not been able to solve an error, I try to access a url that creates from global asax with parameters but it sends me error 404 routes.MapRoute( "Unit",...
asked by 06.04.2018 / 03:24
0
answers

Get the text of an element knowing its class

This is what I find on the web: <span class="class1">30</span> How can I get 30 if I already know the value class1 automatically ? (without having to wait for him to load to give him the order) It works once an...
asked by 02.04.2018 / 10:35
0
answers

Error trying to read gmail emails from c #

I'm trying to read the emails in the Google inbox, the point is that when I try to execute the code it generates an error in this line using (Pop3Client client = new Pop3Client()) The error generated is as follows: {"Error en la inicializ...
asked by 13.12.2018 / 21:37
0
answers

Problems with for loop when rendering input checkbox

I have the following problem when rendering some input checkbox , I go through a loop for with a model type List<> as in the following example: @for (int i = 0; i < Model.MiModeloList.Count(); i++) { if (Model....
asked by 04.06.2018 / 17:22
0
answers

Bizarre Problem Same different code result?

Ok I do not know if this is a bug, a framework problem or what. I am making an application that gives me the location of my cell. Everything works very well in the emulator, I'm using api 27 oreo 8.1. The variable status reflects and returns the...
asked by 03.06.2018 / 15:09
1
answer

C # insert data null

You could support me I'm new, I'm migrating data from Oracle to SQL server but the problem is that I'm trying to insert data and everything was fine, until I came up with the following: When inserting the data there are null fields and I do not...
asked by 15.04.2018 / 09:46
1
answer

C # Razor - error when saving a form with radio button

I have a problem saving a form by a radio button, it always saves the value zero and must be on demand according to what the user selects: <div class="form-group"> <label for="BONUS" class="col-md-2 control-label">Bono:</lab...
asked by 29.03.2018 / 05:45
0
answers

How can I run this in the background c #

I am updating a DataGrid every 5 seconds, the problem is that sometimes it gets stuck and I need to execute it in the background. To avoid this, I have seen that I can do it with BackgroundWorker but I do not understand very well how th...
asked by 28.03.2018 / 23:55