Most voted "c#" questions
This tag should be used when the question refers to some resource, information or problem related to the C#language. C# ("C Sharp") is a multi-paradigm programming language that has strongly typed variables, is imperative, declarative, functional, generic, object-oriented and component-oriented, which are designed to be executed in . NET Framework.
Learn more…13,899 questions
Sort by count of
-
0
votes1
answer163
viewsProblems with sorting within a Repeater
I have to: <asp:Repeater ID="rptDocumentosRepeater" runat="server"><%--onitemdatabound="listaDocumentosRepeater_ItemDataBound"--%> <HeaderTemplate> <legend…
-
0
votes0
answers85
viewsConsume file sending service
I have basically a c# service that was made to receive a file, what I want is to use this service, I created an Asp.net page with a fileUpluod, and I wanted to put it to work, as I do? Class of…
-
0
votes3
answers4347
viewsCheck if the item exists in a List<>
I have a list typed in C# and I need to search for an item through several filters. I demonstrate in codes: List<LoteRecla> listLoteRecla = new List<LoteRecla>(); I tried using the…
-
0
votes1
answer338
viewsChange the . NET Frameworks application
I developed a c# app using sqlite. However, when compiling and installing on another OS XP computer, I came across the following error: Createprocess failed Cod. 193 %1 is not a valid Win32…
-
0
votes1
answer1388
views -
0
votes1
answer51
viewsMethod returning object name in Entity
I have the following method: internal ArquivoVersao GetArquivoVersao(string arquivoVersaoGuid) { using (var ctx = new TestEntities()) { var versao = (from ver in ctx.ARQUIVO_VERSAO where…
-
0
votes2
answers761
viewsArgued tofrangeexception with Entity
I have a method that waits for a file object, what it does is add the references in the database: Look at the method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new…
-
0
votes1
answer327
viewshow to communicate with desktop applications?
as a college project, we are developing a program to manage the projects for those who work home office. I am doubtful how I can create an interactivity, for example, for the project manager to…
-
0
votes2
answers122
viewsWinsock receiving information from the server
I’m trying to send a really big information to the server (11000), and the problem I have is that it’s not coming full. Look at the code: On the server, there is a loop. do { Tick =…
c#asked 9 years, 9 months ago user3571412 187 -
0
votes2
answers1763
viewsError updating Entity entries
I’m trying to insert some data from some files by Entity, but it keeps giving this error: Method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new TESTEntities()) { var versao…
-
0
votes0
answers154
viewsValidation error in Entity framework
In my method of adding ta files giving the following Exception when debugging: Validation failed for one or more entities. See 'Entityvalidationerrors' Property for more Details. Method: internal…
-
0
votes2
answers285
viewsMethod to edit data with Entity
I am developing a file manager and have already implemented some methods like addArquivo, listarArquivo, listarVersoes, etc.. But I need to edit it, check my DAL methods: Add: internal void…
-
0
votes2
answers150
viewsmake a component in a Repeater get enabled=false
I have a button inside a Peater. As it is in a Peater, it only appears in the Databind() of the Peater. Using the variable and the event, I can get to that component like this: protected void…
-
0
votes0
answers33
viewsHow to develop a Combobox that updates due to what is written in C#itself
First the scenario: I am developing a C# system with the SQL Server database. At the moment I find myself with the following problem: I am developing a form of Sale, and in it I have a combobox…
-
0
votes1
answer181
viewsList method does not return objects
Method with RU List internal List<Arquivo> GetAllArquivo() { using (var ctx = new TESTEntities()) { var arquivos = ( from ver in ctx.ARQUIVO select new Arquivo() { ARQUIVO_GUID =…
-
0
votes1
answer111
viewsHow to delete data from one table related to another
I have the following situation with a method of deleting directory: internal void DeleteDiretorio(Model.Diretorio diretorio) { using (var ctx = new TESTEntities()) { var dir =…
-
0
votes2
answers1035
viewsTable Completion with List
Is there any function in Visual Studio where it is possible to fill a table with values of a List<> without a specified number of positions?
-
0
votes1
answer1646
viewsE-commerce with ASP.NET MVC
Does anyone know if there is any course, guide or material that contains what I need to build an Ecommerce with ASP.NET MVC? More specifically the sales system itself, such as implementing a payment…
-
0
votes1
answer1226
viewsProblem when exporting data from c# datagridview to excel spreadsheet
Good morning guys, I have the following code below, in it I am taking the data from the datagridview and exporting to one . xls, I’m going through everything like String, the texts, names, which are…
-
0
votes1
answer101
viewsDoubt about Entity Modeling
I have an entity called Requests that satisfies the following business: A request is made by an Employee(Entity), then it is changed by another Employee and then confirmed by a third Employee. In a…
-
0
votes0
answers66
viewsApplication with Drag and Drop and other effects
I am preparing to do my TCC and the result of it will be an application. In this application I will model objects. To model this object the application will provide some shapes. These shapes should…
-
0
votes2
answers378
viewsError in reference in C#
I’m making this mistake someone knows what it is ? Warning 1 The Primary Reference "C: Users Denilson Documents Visual Studio 2013 Projects Forklifts Forklifts.DTO bin Debug Forklifts.DTO.dll" could…
c#asked 9 years, 9 months ago Denilson Carlos 201 -
0
votes0
answers552
viewsUpdatepanel does not update
I have the following updatePanel: <asp:ScriptManager ID="ScriptManager1" runat="server" ChildrenAsTriggers="true" > <Scripts> </Scripts> </asp:ScriptManager>…
-
0
votes0
answers75
viewsError select text with mouse, Forms within tabcontrol
I found an elegant solution on how to work with MDI Tabbed Interface, I am creating at runtime a tabcontrol within my MDI form, and I am creating a new tab for each form. as described below !…
-
0
votes1
answer71
viewsOracleexception is not fired!
Someone has already come across the following problem: When an error occurs that should be of the type Oracleexception, but in its place an exception is triggered, then the oracle treatment is not…
-
0
votes1
answer73
viewsMapping Onetomany Nhibernate
Hello, In an application has a class that I need to do a Onetomany mapping, this parent class will be responsible for performing the persisntecia of the daughter class. My question is, I mapped Bag…
-
0
votes1
answer107
viewsMessagebox.Show error dialogresult
I don’t know what I did but the mistake: Error 4 A using namespace Directive can only be Applied to namespaces; 'System.Windows.Forms.Messageboxicon' is a type not a namespace C: Users Guilherme…
c#asked 9 years, 2 months ago Guilherme Henrique 1 -
0
votes1
answer109
viewsVariable is always with value, when it should be null at certain times
I have this code: This rptAprovaDocumento is a Repeater public List<ENTSISRegistroPendencia> RegistrarPendencia() { CheckBox vchkTornarObrigatorio = null; for (int i = 0; i <…
-
0
votes1
answer1306
viewsDisplay or Hide Fields for Natural or Legal Persons
I have a form that registers Clients, and has the option of being an Individual or Legal Person, and each one has some different fields. I thought of using a @Html.Radiobutton with the option…
-
0
votes1
answer177
viewsData comparison between Datagrid and database
Hello guys I’m with a doubt in my application, because in it runs a pocket pc(Collector) connected to mysql inserting in the product table(Idproduct, cod_barr, Description), and on the other side…
c#asked 9 years, 2 months ago Douglas dos santos costa 3 -
0
votes0
answers528
viewsConsume webservice C# amsx on android Volley
I created a webservice in c# that returns me a string in the JSON pattern, I’m trying to consume this webservice with Volley but the same returns me null, depending on the variation of the url it…
-
0
votes2
answers1374
viewsCount number of checkbox selected
I have a grid with Repeater: <asp:Repeater ID="rtInlineBlock" runat="server"> <ItemTemplate> <div class="block"> <asp:HiddenField ID="idDirectorio" runat="server" Value='<%#…
-
0
votes0
answers13
viewsDo I need to open an aspx in a mvc4 project is possible?
I have a MVC4 project, and I need to open an aspx page, which is a report from Report Viewer. This works by running locally with Visual Studio’s IIS, but going up to the server doesn’t work. What…
-
0
votes1
answer489
viewsSynchronize Progressbar with Execution of class methods
In my project I have a class that has three methods: static List<string> ListaArquivos(string path){...} static void CriaArquivoUnico(List<string> listaArquivos){...} static void…
-
0
votes1
answer71
viewsLoad variable with Split Expressions by scrolling through a list
First I made this code: for (int i = 0; i < vlstAcessos.Count - 1; i++) { if (vlstAcessos[i].DsURLTransacao == "frmANAAguardeProcesso.aspx") transacaoANA = vlstAcessos[i].DsURLTransacao =…
-
0
votes0
answers549
viewsAsp.Net Questionnaire
I am creating a system of evaluations, where teachers will feed a database of questions that will later be part of activities that will be made available to students. My question is when to present…
-
0
votes1
answer114
viewsMethod finishes its execution unexpectedly when calling another method
I am implementing a method that performs a call to another method that should return one IEnumerable<TEntidade>. However, when returning from this list the method that started the call simply…
-
0
votes1
answer197
viewsHow to create a Gridview
The examples I saw on the net did not work, or were very personalized. I just want a simple table, with 4 columns that will be filled with data from a comic. The same will stay within a simple…
-
0
votes2
answers7710
viewsUnable to locate Data Provider . Requested Net Framework. Sql Server + Entity
I’m having trouble connecting with my local bank. This is my View, where I try to connect the bank using Razor: @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_LayoutOuvinte.cshtml"; var db =…
-
0
votes1
answer94
viewsstretch label horizontally on a panel in c#
What properties to use to stretch a label (the label in question has the text "shortcuts") in a panel? I want it to occupy horizontally the entire space of the left panel. Program example:…
-
0
votes0
answers29
viewsHow do I know if Memcached is connected to C#?
How to know if Memcached is connected with C# ?
-
0
votes1
answer190
viewsShow content in textboxfor
I would like to know how to display the value of a property within a textboxfor. I have the following code: @model Calcular.Models.Conta @{ ViewBag.Title = "Somar"; } <h2>Somar</h2>…
-
0
votes1
answer32
viewsHow to block form scrolling when I’m dragging a controller?
I have a form where I design a company’s supply network. For this, I need to allow the user to move the controls that are in the form. This is working. However, when the user moves the control…
-
0
votes1
answer981
viewsTake the data searchFornecedor and put in the form of product registration
I cannot take the data from the Pesqvendor form and put it in the formCadastroProdu My project is in C# Windows Forms in 4 layers. did so frmCasters private void pctLocalizaFornecedor_Click(object…
-
0
votes2
answers958
viewsLoad a page from an html string
I am with the following doubt that, I believe that although it is beast, it is giving me a beautiful job. Next, I have a variable like string and I need to perform a method that will receive this…
-
0
votes1
answer66
viewsI can’t see which argument I should use to do this job
public class RetornoBO { List<RetornoRomaneioPostagem> OK = new List<RetornoRomaneioPostagem>(); Dictionary<string, int> retorno = new Dictionary<string, int>();…
-
0
votes0
answers248
viewsExit the modal after return of the result
After deleting and returning to index... [HttpPost] [ActionName("Delete")] public ActionResult DeleteConfirmed(int id) { _unitOfWork.UserRepository.Remove(id); _unitOfWork.Salva(); return…
-
0
votes1
answer901
viewsUpdate a viewbag (c# Razor) with a javascript variable
Maybe what I want to do may be impossible, because of server and browser side issues, but I would like to do the following: <script> function pegarId(id) { $('@ViewBag.Id').value =…
-
0
votes1
answer1996
viewsError while trying to consume Webservice: Server did not recognize the header value
I am facing the following error when trying to read a Webservice: SoapFault - faultcode: 'soap:Client' faultstring: 'O servidor não reconheceu o valor do cabeçalho HTTP SOAPAction:…
-
0
votes0
answers2070
viewsError Handlers Asp.Net
Staff need help with the item below. The error is occurring when trying to run a Web Site project in VB.Net. I have two in the same Solution, one wheel and the other one shows up. It is a project of…