Most voted "asp.net" questions
ASP.NET is a web application framework developed by Microsoft to allow programmers to build dynamic websites and web applications. Use the tag for traditional web forms, the classic template that provides the illusion of "stateful" pages. Do not use this tag for the style using the standard Model-View-Controller; use [Asp.net-mvc].
Learn more…1,881 questions
Sort by count of
-
0
votes0
answers17
viewsIncompatibility Browser Edge Updatepanel
I have an Updatepanel, which works perfectly, in Chrome browsers and firefox, it does not update the page, when I change something in the combobox, but in the EDGE browser it updates, I have tried…
-
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
answer56
viewsPass Httppostfilebase as parameter in the API method
I have an Api that makes employee registration and also a photo, in the parameter I pass the object and a type htttppostfilebase, but when sending to api in my debug is not even hitting the method,…
-
0
votes0
answers93
viewsShow Image in Datatable Asp.net MVC
I’m having trouble displaying an image in my application’s datatable. I get the name of the image but it does not display. "columns": [ { "data": "Id", "name": "Id", "autoWidth": true }, { "data":…
-
0
votes1
answer161
views -
0
votes0
answers39
viewsLock form code when opening modal
I have a modal boostrap that works perfectly, I call it in c# code-Behind, that way: ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModal", "$(function() {openModalExclusao();});",…
-
0
votes1
answer1028
viewsPopular Canvas Chart with Database List
I need to make a Dashboard and I’m having a hard time to popular a line chart of a canvas chart. I need date and label arrays to be filled with data from my list but don’t know how to do it What I…
-
0
votes0
answers32
viewsController variable is null on ajax get
I have a List of objects that is instantiated when the view is created, when a value in the dropdownlist is selected, use ajax to make a request to verify which of the objects inside that List is…
-
0
votes1
answer822
viewsError while consuming Nfe service
good afternoon, am making a webservice on Asp.net to consume the farm site’s Nfe service, however when trying to add service reference in the project with the url:…
-
0
votes0
answers385
viewsHow to make Table with two foreach close <tr> </tr> Asp.Net MVC
I need to make a table that for each row I have the information as shown below See that in Lot 1 until City the data does not repeat at each foreach and only from the column Species the data…
-
0
votes1
answer168
viewsHigh box input in Asp.net
I am creating an application in MVC with DDD and on my registration screens, I would like the fields string as NomeCompleto, Endereço, Cidade, etc, were saved on displayed in inputs in high box. I…
-
0
votes1
answer94
viewsVisible password
I am building a login in Asp.net and I want to click on the checkbox to show the password to be shown. Design page Asp <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"…
-
0
votes1
answer258
viewsFileupload is not passing the file to Code Behind
I am doing some tests to Upload any file and save it in a physical folder, but even with the file loaded on the screen, it is not passing in ID/value: Example: Follows codes: aspx: <div…
-
0
votes1
answer48
viewsHow to give a POST on the page with the UPLOAD property without going into looping?
Looking on the internet I saw some websites saying that when you own a property Upload on the page can not give POST the same because it goes into looping. I have an application that creates/deletes…
-
0
votes1
answer96
viewsHow do I display all the columns of my BD Asp.net mvc
wanted to know how to loop when printing the columns of my grid with the values of the database, but it displayed only 1 result even the database being huge, here the code, thanks for the help…
-
0
votes0
answers77
viewsHow to inject dependency into a dynamically created class?
I’m doing a gateway to a client project consuming Microservices. In this gateway, the way the client will consume the application is through an interface. The implementation of this interface will…
-
0
votes1
answer118
viewsShorten/Camouflage very large text within a grid
I have this grid line that takes the description of a message, but it is very large sometimes and is breaking the grid layout, I wonder if it is possible to shorten the message and/ or camouflage…
-
0
votes0
answers39
viewsDeserialize an XML file and insert it into a Mysql database
Hail to the crowd here, How to read XML files so that data can be entered into a database mysql. The problem is reading the XML and deserializar, since the retorn is empty, because the insertion in…
-
0
votes1
answer699
viewsSend Json from client application and receive on Server
I have a problem sending a json from my client application to my server API. Json is generated correctly, and the POST request is made, but on the server side the following error is reported:…
-
0
votes0
answers203
viewsAsynchronous handler completed while asynchronous operation was pending - C#
Hello, I have some questions regarding the code below. The return code the following error [Invalidoperationexception]: Asynchronous module or manipulator completed while asynchronous operation was…
-
0
votes1
answer38
viewsError of log. Append
I have an excel sheet with fields referring to dates, however, if I do not fill these fields, I should display message log for this user, but if I leave blank, the log is not shown. I put breakpoint…
-
0
votes2
answers359
viewsGeneric Method of a Generic Class C# for similar classes
I have some classes that will use a record method. I created a CRUD (Generic) class where would have a method to write, but I need this method to receive as parameter the classes. There is some way…
-
0
votes2
answers910
viewsCall a method every time a Controller is triggered Asp.net mvc
In my project I have a method that creates a menu on the layout page "_Layout.cshtml", for example, in my control HomeController.cs this method remains, and in ActionResult Index() I call this…
-
0
votes0
answers29
viewsError in Function Generic for Procedure Return
I am trying to make a Generic method for return of Procedure, but when picking up Datarow to make a Cast generates the following error: Unable to cast Object of type 'System.Data.Datarow' to type…
-
0
votes0
answers65
viewsCalling a page on another Asp.net-core
Good morning, I have an Edit Timetable page, which works perfectly, but on this Edit page, I need to call the Horario Item Index page, I’m trying this way on the EDIT page : <div class="row">…
-
0
votes0
answers47
viewsFileupload file format saved in sql server database 2008 with Image type
I have a problem finding the right encoding for a file that is saved in the database through Asp.net Fileupload in sql server 2008 database with Image type. I need to migrate from a web system to an…
-
0
votes0
answers49
viewsGood Practices Asp.net Core MVC: Creating a Dropdown for a current record to be used globally across the system
I have a question: I am creating a backward system in Asp.net core mvc and in my _Layout.cshtml I need to create and load a dropdown listing all the AFFILIATES of the system so that the user selects…
-
0
votes2
answers143
viewsASP Net Core - Server receives multiple GET requests repeatedly
Hello, I have a server hosted on an EC2 instance, Ubuntu Server on Amazon AWS. No one is making requests to this server, however, logs presented in Cloudwatch indicate multiple GET operations…
-
0
votes0
answers103
viewsAsp.net error connected to sqlserver
I have this code: <head runat="server"> <div class="barraCima"> <img class="simbolo" alt="icon" src="images/doctor.png"/> </div> <div class="main"> <div…
-
0
votes1
answer52
viewsView select ASP.NET Sqlserver
I’m maintaining 1 controller and I’m taking the data from my database and trying to display it in the view, however I can’t pass select to the view, can anyone help me? i need to pass all select…
-
0
votes1
answer426
viewsHow to create a controller with data from another table in ASP.NET?
I don’t know how to properly create an Employee Controller. The Employee class is linked to three others, being CBO, Company and Department. So in the database schema, they get these three primary…
-
0
votes2
answers94
viewsCreating a foreach as a result of an Entity query
Hello, I’m trying to foreach a query result, the field I need is a string, but at the time I step into the foreach it’s being transformed into another value. I need to compare two dates, in case the…
-
0
votes1
answer123
viewsPopular a View with values in the ASP.NET MVC model
In the Index Method I can set values in the model and initialize my VIEW with predefined value. But when I do the POST for the START method, when I change the Aquedica property, the value is not…
-
0
votes0
answers162
viewsWhy are these errors appearing in Razor when compiling the project?
Changes made by me @model Pessoa; // já tentei module3.Models.Pessoa e todas as variacoes possiveis @{ ViewData["Title"] = "Pessoa"; } h2> @ViewData["Title"]</h2> <p>Name: @model.Nome…
-
0
votes0
answers83
viewsRepeater, Table and Updatepanel - Not Working Correctly (ASP.NET)
I would like your help with Repeater, Table and Updatepanel together on ASP.NET using c #. What do I need? I have category and items (with weight) and the user needs to set a note for that item. In…
-
0
votes3
answers172
viewsModal Bootstrap window does not display styles in components - Asp.net MVC
I have a problem that I haven’t been able to solve in months! I’m using a package of bootstrap and JS styles, in which they refer to my _Layout. On all pages that are rendered and inherited from the…
-
0
votes1
answer944
viewsError 174 - The event will only be accepted after the beginning date of the employer’s obligation to eSocial
I wonder if anyone else gets this error when you send the "S-1000" to the restricted production environment, and how you can fix it. I’m finalizing the structure but I can’t successfully send once.…
-
0
votes1
answer56
viewsRun an XMLA query using C#Webapi
My C# Webapi looks like this. using Microsoft.AnalysisServices.AdomdClient; using System; using System.Data; using System.Web.Http; using System.Xml; namespace FastReport.WebApi.Controllers {…
-
0
votes2
answers274
viewsUndefined object reference for an instance of an Asp.net object
blz? Next, I have a problem with the exception "Object reference not defined for an instance of an object", I have already sought several solutions, however, none satisfies and/or corrects my…
-
0
votes0
answers67
viewsASP.NET - Application with the possibility of authentication Forms and Windows
I have to configure the following ASP.NET authentication scenario: depending on some precise conditions that authentication is performed through Forms or Windows. The scenario is that if an…
-
0
votes1
answer44
viewsMaps in . NET CORE, Fluent API - property . Hasforeignkey with error
Good afternoon! I’m starting to develop a system in. net, kind of in Brazil, so I’m learning as I build, but some mistakes are not yet clear for me I have the following code: //boat class public…
-
0
votes1
answer61
viewsConfiguration of server Asp
good afternoon. I’m venturing into an Asp server, only I’m lost in its configuration. Like php dev, I put an index.php in an Asp server hoping it would work, but it didn’t. Looking more on, I…
-
0
votes1
answer1167
viewsUnable to load type'<Projectname>. Mvcapplication 'when duplicating project
I duplicated my project in Visual Studio as follows: 1° I entered the filesystem and gave CTRL C + V in the briefcase SiteTeste which is the project folder. 2° I renamed the folder to Siteteste2 and…
-
0
votes0
answers100
viewsPerforming Sharepoint Search by Asp.net Form
Good guys, I’m using Sharepoint as a file database, but I’m having trouble searching a document in the folders. I’m using the . NET CSOM. protected void Pesquisar_Click(object sender, EventArgs e) {…
-
0
votes2
answers353
viewsPostback removes selected items Multiple dropdownlist
I have a static multiple Dropdownlist (ddl1) on my aspx page. It has 4 options, in which you can select from 0 to 4 options. Another Dropdownlist (ddl2) that is also static in the form has the…
-
0
votes1
answer52
viewsAs popular dropdwonlist with datetime AM value and another dropdwonlist with PM C#
Question: As popular a dropdownlist worthwhile datetime AM and other dropdownlist with PM value in C#. private static void FillTimeDropDown(DropDownList dropDownList) { TimeSpan startTime = new…
-
0
votes1
answer70
viewsASP.NET - Partial View inside tab does not invoke initializing method
I have a Razor Page with different tabs. And on each tab, I invoke a partial view in order to create a multi-step form. However, I noticed that the Index method (which is in its respective…
-
0
votes1
answer464
viewsHow to add include by expression in Repository Pattern C#
I am creating a Repositorybase (Repository Pattern) with Entityframework Asp.Net Core, and in it I am creating a Where method, where I pass a Where expression of the entity. So far the method works…
-
0
votes1
answer63
viewsQuestions to resize with ASP.Net application
I am developing a web report (ASP.NET + BOOTSTRAP) and when opening it on mobile phone it is as follows: I’d like to resize those lines to the end or else take out the side lines, would that be…
-
0
votes0
answers60
viewsCSS - Switch does not change text when clicked
I have a checkbox that I turned into a switch so the user can choose "Yes" or "No": yes when it is clicked, not when it is not clicked. When the switch is not clicked, the "No" text appears as…