Most voted ".net" questions
The Microsoft . NET is a set of libraries and functions that are part of the Basic Class Library (BCL), such as user interface functions, data access, connectivity, cryptography, web development, mathematical algorithms, and network communication.
Learn more…2,689 questions
Sort by count of
-
0
votes0
answers34
viewsMove Assembla project to Visual Studio Team Services
The Assembly has changed prices this year and it will not be sustainable to continue with the service. Is there any way to migrate projects to Visual Studio Team Services without major…
-
0
votes0
answers322
viewsError: The Entity types 'Customrole' and 'Aspnetroles' cannot share table 'Aspnetroles'
People created the whole structure Identity to work with INT instead of GUID. Using Database First and included in the database, with a create script, the modified Identity tables (I only changed…
-
0
votes1
answer48
viewsHow I take the value of a checkbox to go through parameter
I wonder how I get the status of a checkbox if it is enabled or not to pass by parameter to the controller…
-
0
votes1
answer255
viewsAccess Database on client machine from Web Application
Hello, good afternoon. I’m developing a system that has only one code for several databases. The system already implemented almost all, but when I started to test the connection on the client…
-
0
votes1
answer213
viewsHow to create a WCF (.NET) POST type method that receives a String parameter from the URL and Stream via POST?
I tried to use in my service but I can’t get anything other than this error. Error: ExceptionDetail, provavelmente criado por IncludeExceptionDetailInFaults=true, cujo valor é:…
-
0
votes1
answer24
viewsauthentication with Formsauthenticationticket
I need to make the persistence of inclusions, changes and exclusions that users make on the system, each drive that the user only sees, so I created a Id on the tables of my BD to know which user is…
-
0
votes1
answer104
viewsHow to use C# syntax in onclick
I declared a variable in view: @{ int index = 0; } And I want to change it through a onclick: @for (var b = 0; b < cont; b++) { <li> <a onclick="@(Index = b)">Endereço @(b +…
-
0
votes1
answer687
viewsExchange "Web Browser" Vb.net
I want to change the default browser of visual studio, I would like to use another to run some scripts that are having problems in internet explorer. I would like suggestions and examples of how to…
-
0
votes1
answer86
viewsHow to add Resece in Visual Studio
In the company we have a problem with some of the projects, because they are in different folders on the machines of each programmer and usually when you check in and then get Latest version, we all…
-
0
votes1
answer72
viewsHow to create a dialog tree with a custom language in C#
I created a dialogue creation language for a game, but at the stage where I analyze recursion, it is always generated incorrectly. The syntax looks like this:…
-
0
votes0
answers21
viewsKnowing if a process is critical
If my program closes a critical process, there will be a blue screen. So, how do I know if a process is critical? If this process is critical, then my program will not close it.…
-
0
votes1
answer34
viewsAvoid Windows compatibility mode
I’m maintaining an old code in c#. The program was installed on Windows 7 at the time it was created, now with Windows 10 it is necessary to run with compatibility mode to work. Compiling with a…
-
0
votes1
answer80
viewsProblem with Ajax URL
every time I try to call my controller’s method appears a different url than the one I’m putting in the AJAX url, why ?…
-
0
votes0
answers53
viewsWhich is faster? Looking for data in the bank or reading a cookie?
Guys, in your opinion, what would be better in this situation? I’m working on an Asp MVC and Entity Framework website. I have a table of federative units where I have (simplifying) 3 columns Id,…
-
0
votes0
answers180
viewsApplication runs by visual studio, but does not run when executed
I’m using visual studio 2017, I created an application with WPF, the application normally runs inside the visual studio in debug mode, but if I compile it and run from inside the release folder, it…
-
0
votes1
answer62
viewsRead a folder file and determine if it is the same as the website
I’m doing an Auncher autoupdate on c# . net and I need my program to read a database file that’s in the same folder as it is and see if it’s the same as my site, and if it’s different, it download.…
-
0
votes2
answers114
viewsWhy is there the term "Private" in . NET?
Declaring variables without specifying the variable access level in C# and Visual Basic . NET ends up making the private, only the type/location where it was created can access and/or modify it.…
-
0
votes2
answers146
viewsHow to associate items from a String list to the code name of a C#label?
My goal is to play a hangman’s game. Basically my problem is this: I have a word divided into substrings for each letter of the word, all stored in an array. For example: string[] letras = new…
-
0
votes1
answer42
viewsEntity Framework bank creation
I’m new to Entity and I’m following a step by step to create a Code First application ( http://www.entityframeworktutorial.net/code-first/simple-code-first-example.aspx ). I created the application,…
-
0
votes1
answer110
viewsHow to stop printing positions = 0 of a vector?
In the example below, how I would fail to print the positions of this vector that are equal to 0 int[] caluculo = {50,6,0,59,6,7,0,6,8}; for(int i = 0 ; i < 9 ; i++) {…
-
0
votes1
answer99
viewsHow to get all public properties of a class in the order that were declared in VB.NET
I am creating a library to validate the Fiscal SPED in VB.NET and to streamline the process of creating lines, each class already has its pre-defined attributes and in the order according to the…
-
0
votes3
answers161
viewsManipulation of Textbox
You simply fill in the fields Modelo, Placa, Km and it will be saved in the fields multiline down below: But when I click on the "Save" button the result is totally opposite to the expected one. I…
-
0
votes2
answers161
viewsHow to manage threads in C#?
I’m developing a project and I think I’m going to need multithreading. While starting a thread new doesn’t seem difficult, I can’t understand if I have to finish the thread or she ends up alone. My…
-
0
votes1
answer40
viewsGet parameter by url for my controller
I need my controller to get a parameter from a URL (localhost/Check/123456), where 12346 would be the parameter. I configured the Routeconfig: public static void RegisterRoutes(RouteCollection…
-
0
votes0
answers168
viewsParser error
you have already come across this kind of problem? This mistake has started to happen in a project that is already in its final phase. To test the environment I created a simple project and while…
-
0
votes1
answer43
viewsHow to create an array the same size as another array without copying it?
private void InversaoString(string Texto, int Tamanho) { char[] arrChar = Texto.ToCharArray(); char arrChar2; int indice = 0; for(Tamanho = arrChar.Length-1; Tamanho>=0; Tamanho--) {…
-
0
votes1
answer57
viewsRead download data using Backgroundworker Progresschanged
td well? I am very new in programming, I took a project of a Auncher with autoupdate already ready and just edited some things. It basically downloads a game’s updates. I’ve handled other projects…
-
0
votes2
answers170
viewsSwitch only enters "default"
When I read a number, converting it to Int32, my switch simply understands that it is a default and makes the code there described. static void Main(string[] args) { Jogador j = new Jogador();…
-
0
votes2
answers2572
viewsHow to change button color using RGB or Hexadecimal code?
I have a Winforms application and would like to use colors that are not in the presets of the object Color, how could I do that ? By way of example: How the code is found: this.btnLogout.BackColor =…
-
0
votes1
answer146
viewsSet Value Default @Html.Dropdownlistfor via Json - ASP.NET MVC5
I am making a timekeeping page using ASP.NET MVC5. The user enters the markup data as shown below: However, if any error occurs in the registration of the tag, the controller returns the model to…
asp.net-mvc .net json asp.net asp.net-mvc-5asked 6 years, 8 months ago Wagner Barbosa Do Nascimento 43 -
0
votes1
answer380
viewsHow to get value from an Html.Editorfor
I have the following command @Html.EditorFor(m => m.DataDoDesligamento) In it is placed a date, and when clicking on a button should redirect to a report, only that I need to pass the parameter…
-
0
votes1
answer48
viewsCreate List of actions already passing the parameters and then run them as parameters passed
I wanted to know if there is the possibility of creating a list of Actions already passing its parameters to execution, because the number that I will pass to the execution of the same can be…
-
0
votes0
answers390
viewsVS2017 locking in design mode
Good afternoon to all. For a few days now I have been facing a problem in VS2017 that is irritating me a bit!! I have a form with a usercontrol developed by me and some grids. One of these grids was…
-
0
votes1
answer43
viewsHow to catch daughter entities from a data constraint?
Well my problem is this, I need to bring a bank entity and it contains several lists that should bring your data following a rule, the field data_exclusao must be void. All entities have the field…
-
0
votes2
answers998
viewsURL redirection via web.config
I need to perform a page redirect http://exemplo/comunicacao/ to the page http://exemplo/caminho_novo/comunicacao. I’m performing the following on web.config : <?xml version="1.0"…
-
0
votes1
answer492
viewsPostback Asp.Net Webforms
I just started working with WebForms and it became a question, due to always messing with the asp.net mvc. Supposing I have one DropDownList and populated the DataSource of it with various records,…
-
0
votes1
answer326
viewsHow do I change the csv header, C#
I’m generating a CSV file, but I’d like the header was the same as anottation displayname. When I export, the displayname is ignored. call of the method string csv = ListToCSV(resultado); private…
-
0
votes0
answers412
viewsC# - Tool for signing a PDF document
I need a tool that allows a person to sign a PDF document at a particular location of the document, does anyone have any tips? But you have to allow it to do this internally in my application, tools…
-
0
votes0
answers100
viewsSlow loading of Ionic 3 images
Good afternoon, I developed an app selling products and, is working perfectly. My only problem is how to upload images. I downloaded some store apps, and the images appear almost instantly and in my…
-
0
votes0
answers38
viewsRun nhibernate on macOS X 10.13.3 (c#)
Good morning, I’m new to the world of C# programming and therefore had some problems compiling a project by visual studio for mac. The problem was this, the project uses version 4.0.3 of nhibernate…
-
0
votes0
answers25
viewsVERSION OF THE LANGUAGE C#
Hello, When I create a project, in visual studio, it provides me the option to choose the version of . Net(...4.5, 4.6, 4.7...) that I want to use, but does not inform the version of the language…
-
0
votes0
answers51
views -
0
votes1
answer47
viewsAPI problem after deploying
My api is not working after deploy to the server, it is returning: 404 - File or directory not found. The Resource you are Looking for Might have been Removed, had its name changed, or is…
-
0
votes1
answer191
viewsASP . NET - Local file directory using Chrome
I have the following code snippet: <div class='upload-border'> <input class='file-upload' id="fileUpload" runat="server" type="file" name='upload'/> </div> I need to get the local…
-
0
votes1
answer946
viewsRecaptcha v2 on local server!
First of all, in case that question doesn’t fit here, you don’t have to deny it just by saying I remove it. But anyway, I believe that everyone in the programmers has been through this problem, I…
-
0
votes2
answers235
viewsHow to change the appearance of the form according to the operating system?
When developing a project in C# (Windows Form Application) the appearance of the application window (borders) is in accordance with the OS in which I am running the application (Windows XP, Vista,…
-
0
votes1
answer147
viewsImprove Process Performance C#
Good morning, I have a problem of slowness when performing a process that is performed 1 Insert and 2 Updates for each record. That is 2500 records, will be held 7500 access in the database. Here is…
-
0
votes1
answer266
viewsBematech MP 4200 TH - dll MP2032 to know if you finished printing
Good afternoon, I am developing an integration with payment via Getnet TEF in c#, my problem is in printing the payment confirmation coupon, and for approval I need to be sure whether the printing…
-
0
votes1
answer217
viewsLoad Bitmap into Picturebox
I’m building a code to scan biometrics. How do I put the generated image into the device in pictureBox What I use to mount the image in bitmap public Bitmap ExportarBitMap() // Exporta para o BitMap…
-
0
votes1
answer98
viewsC# List Console
How do I display only the third values of the list, in case the ("500, 900, 2000, 1500, 2000). And how I do this same process to display only the third values of the list that has associated the…