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
-
1
votes1
answer474
viewsHow to "call" an ASP.NET page without using IIS?
I need to get the result of processing an ASP.NET page via programming, but I cannot use IIS. The right, would be, if ASP.NET, had a CGI to be called, just like PHP has, but I found nothing, only…
-
1
votes1
answer1005
viewsError saving list of MVC C#objects
As the post Edit object list with POST form in MVC C# I was able to make my application display the values. However, trying to save the data gives the error: The operation failed: The relationship…
-
1
votes1
answer85
viewsHow to add groups and items to an Objectlistview?
Good afternoon Personal. I’ll rephrase the question and try to express myself better... I am using the `Brightideassoftware.Objectlistview , is not the traditional Microsoft Listview - Visual Studio…
-
1
votes1
answer138
viewsHow to update the . Net framework?
How to update my project framework?
-
1
votes2
answers83
viewsCreation of a mailClient
I’m on a project that I need to develop an Email Client, however I’m somewhat lost on that, so. I need to use the IMAP protocol (I studied its RFC in depth) and the C#language, but I can also use…
-
1
votes2
answers272
viewsCreate Database with Fluentnhibernate
Is it possible through Fluentnhibernate to create the database as tables are created? I have the following class: public class Helper : IRepositorioHelper { private static ISessionFactory…
-
1
votes2
answers2679
viewsFill Dataset with Datatable
In C#, how can I declare and fill a Dataset with a Datatable? My idea is to pass the data resulting from a query in the Database to the Dataset, then fill a Report with this Dataset. It is possible?…
-
1
votes1
answer114
viewsUser property, utility and possible Displays
For educational purposes, I was observing the property User class Controller of Asp.Net MVC. I saw a example, very interesting, that a base class for the controllers has been implemented and it owns…
-
1
votes2
answers2761
viewsDo not display null value (01/01/0001) of a Datetime in a Datagridview
My DataGridView has some fields DateTime worthwhile null (01/01/0001). How do I do not display these values, leaving the field blank? Currently: How I’d like you to stay: I’m using WindowsForm, C#…
-
1
votes1
answer2717
viewsCheck File Creation Date and Delete
I created a Backup application, it saves the files in zip format DD-MM-YYY - 00-00-00.zip, but would like to know how I would do to check creation date for deletion, because the name of the files…
-
1
votes1
answer545
viewsAre there online programming learning environments with hands-on exercises and challenges for C#?
There are some sites, such as URI Online Judge, that allow programmers to practice programming and share knowledge through specific exercises and logical and mathematical challenges. But some are…
-
1
votes2
answers2031
viewsProblems with types and conversions when filling a page
That is the mistake: An exception of type 'System.InvalidCastException' occurred in App_Web_fjskumyk.dll but was not handled in user code Additional information: Não é possível converter um objeto…
-
1
votes1
answer1885
viewsIs it possible to change the template/graphical interface of a form in Windows Forms?
I’ve been researching about and the results that I was able to just turn to WPF instead of using Winform, but I still have doubts and I believe it is possible to change the template of the software…
-
1
votes1
answer49
viewsVisual Studio 2010 Outline Extension
I know there are extensions for Visual Studio 2010 that display specific Outline for each environment: C#, css/javscritp and HMTL? Are there any solutions in a single extension? Or do I have to…
.net asp.net visual-studio-2013 visual-studio visual-studio-2012asked 9 years, 11 months ago Jothaz 1,924 -
1
votes1
answer144
viewsRecovering badly formatted string when it contains accented words
In my application I am having trouble fetching the data in the Postgresql database, the words with accentuations when retrieved from the database and dealing in DataReader are coming badly formatted…
-
1
votes1
answer112
viewsPrint matrices with line break
I want to print the various variables of a List. I’m trying to use foreach but it hasn’t worked. Variables are written over each other instead of a line break. Look at my code in the event…
-
1
votes1
answer6384
viewsAdding values present in a List
I’ll explain what I want to do. I have this List: public static List<Cliente> Clientes = new List<Cliente>(); public class Cliente { public string Nome { get; set; } public…
-
1
votes0
answers24
views"Asp.Net Development Server Runs" does not close at the end of the run
At the end of the implementation of the Asp.Net Development Server Runs remains open in the systray. I’m using Visual Studio 2010. 1 - This is normal behavior? 2 - May cause some problem? 3 - There…
-
1
votes1
answer302
viewsInsert tab when printing
I have a code to print each variable of a List. I am trying to insert a tab into these variables. Take a look at my code that is in the event printPage: int charactersOnPage = 0; int linesPerPage =…
-
1
votes1
answer176
views -
1
votes1
answer968
viewsHow to capture file size from System.Drawing.Image?
I have a method to which I pass the parameter System.Drawing.Image and the percentage that this image will get after the resize. public static Image ResizeImagem(Image imgFoto, int percentual) {…
-
1
votes1
answer154
viewsCreate partial (partial) method in C#
You can create a method similar to a class that is partial? For example: Has the method $InitializeComponent() which is of the class of a form. I want to increment this function without touching the…
-
1
votes1
answer133
viewsAdd parameters to Idbcommand
I used the method below to add parameters using the interface IDbCommand using System; using System.Collections.Generic; using System.Linq; using System.Text; using EstudoDotNet.Comum.Dominio; using…
-
1
votes2
answers365
viewsRecover data from a Linq SQL query with Join
In the presentation layer I call a method consLaboratorio who is in a namespace separate where all access to the data is carried out. This method returns an object MiddleOneReturn with: codeErro (0…
-
1
votes1
answer1537
viewsHow to open a file that is within the solution with Process.Start
I added my solution in C# a folder called "files" inside this folder will be placed some standard documents that can be analyzed when registering some projects. I have a combobox in the form for the…
-
1
votes1
answer40
viewsWhat is Text= Resources from a dxe button?
I want to know what is this chunk that code from a dxe button:Aspxbutton, and how it works? Text="<%$ Resources: Textos, BotaoLogin %>"
-
1
votes2
answers104
viewsBatch deletion using Linq
I have a table, which is used in my Model.edmx, with the following fields: ID ID_PROJETO ID_ITEM VALOR How to convert the SQL below into a Linq expression? DELETE FROM TB_RECEITA WHERE ID_PROJETO =…
-
1
votes1
answer86
viewshow to get an id of a model in a view via a link?
I have a link that calls a function JS (POPUP), in this popup I have a registration FORM, to validate all parameters of my form, I need to get the ID of My Model that is in the Link view I am not…
-
1
votes1
answer370
viewsSqlcommand and Executereader parameters
I can’t get bank values and direct a form according to what "profile" is in the users table, if I take the part of ExecuteReader, works the login, however, I need to check the user profile, my code…
-
1
votes2
answers908
viewsPass connection string to dataset via code
How to pass the string connecting to the dataset via code? because the application I am developing cannot contain the app.config.
-
1
votes1
answer110
viewsAssociating List<T> with Webclient
How to associate a class List to a Webclient, and at its end calls another Webclient in a index different List< WebClient > clients; void BaixarTudo(List< string > urls){ for(int i=0;i…
-
1
votes2
answers2812
viewsDecimal variable removing decimal places
I have a variable in decimal which receives a value of a textbox, but when this variable receives the value with decimal places it removes the decimal place and stores the value without the same.…
-
1
votes1
answer574
viewsDoubt when generating a. doc file with C#
The below method downloads the document that is generated dynamically, but when the file opens it shows a file conversion option, leaving the item marked by default Unicode(UTF-8). What to do not…
-
1
votes1
answer806
viewsProcess does not close in 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?",…
-
1
votes1
answer1277
viewsHow to place image and text in the same Datagridview cell
How to place image and text in the same cell of Datagridview C#? I need both to be displayed in the same cell.
-
1
votes2
answers196
viewsError closing Forms
I have the following code snippet to close my application. private void frmAgent_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Deseja realmente fechar o sistema?",…
-
1
votes1
answer412
viewsCreate a method to get records by id
In my CRUD I want to create a method obterPorId(Cliente cli) I want to get the records by code, or by name, or other field. How would you look with Datareader? a correct way, using a method that…
-
1
votes1
answer1101
viewsUnknown supplier
I finished an application on the C# Windows Forms platform and want to publish it on a website, but the application needs admin permission to connect to the server and download to a Windows folder.…
-
1
votes2
answers766
viewsRemove objects from memory
I have a DataGridView in my project and a timer with refresh 5 seconds. I realized that the system was overloading the memory, as each time I listed the previous data remained in memory. This is the…
-
1
votes1
answer241
viewsStarting the Windows Media Player component in fullscreen
When the application with Windows Media Player opens (Windows Forms) always have to press the button fullscreen to maximize the video that is running and would like it to start already in full…
-
1
votes0
answers362
viewsDecrypt xml file by passing certificate password
I need to decrypt an XML file, but already passing the certificate password. I can do similar actions, such as signing the file without the certificate driver requesting the password. Follow:…
-
1
votes0
answers33
viewsWhat happens when I declare to be using (using) a namespace in a class?
When I declare the use of a namespace (example: using System;) in a Cs (C#) file, what happens? Am I just putting the classes belonging to the namespace in the scope of the class? Is there nothing…
-
1
votes1
answer148
viewsWCF Service Reference generates empty file
I’m having trouble referencing WCF services in Visual Studio. It does not generate any reference to the service classes to be referenced, the file Reference.vb is almost empty:…
-
1
votes1
answer1688
viewsSecure backup using Mysql and C#
My application is C# and BD is Mysql, when I do the backup he creates a arquivo.sql. That one arquivo.sql can be easily edited in a notepad, or any other editor, thus leaving my comic very truthful,…
-
1
votes1
answer155
viewsThread starts but there is no reaction
I’m in a little trouble that when I start one thread with a normal function or the tasks of the thread are fully completed and the thread is finalized! But I need to start one thread that causes a…
-
1
votes1
answer55
viewsAccept any Annex format
I have an application where you can insert attachments and then download them. But I did it in a way that with every file format I want to insert as an attachment, I enter a For Each in this way…
-
1
votes0
answers199
viewsCalling a javascript function to execute a logic with data I extract from html
I’m taking some data from an html and need to call a Javascript to generate a parameter with the data I took in html. How do I call Javascript to execute its logic with the extracted data within a…
-
1
votes1
answer230
viewsTransfer date value from Form1 to class c# windows form . net
I’m working with windows form . net c# but I don’t have much practice and would like a help... I have a calendar component in a Form1 and after running the application, a date is selected which is…
-
1
votes2
answers570
viewsIoc with Ninject
I am developing an application using Ioc and Ninject for dependency injection, and came across the following problem: When uploading my application to the server I got the following error: Someone…
-
1
votes2
answers1247
viewsProblem inserting double value in Mysql
query += txtServidor.Text + "',";<br> query += double.Parse(txtVencimento.Text) + ",";<br> query += int.Parse(txtBanco.Text) + ",'";<br> INSERT INTO tbl_associados…