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
answers45
viewsDatabase image does not load
Good morning, I’m trying to display an image previously recorded in a database in the form gridview, but this is returning an error and I can’t figure out what is wrong following the aspx snippet…
-
0
votes1
answer1137
viewsHow to take an input value and manipulate in Behind
Guys with a difficulty where I need to take the value of a text input and manipulate it in the aspx page’s Cs. I am using repeater to add the data to the table, but while trying to pull the input…
-
0
votes1
answer466
viewsError sending email ASP.NET
I am with a client and he is having problems sending email by the application in Asp. The code is as follows: string nomeRemetente = "Remetente"; string emailRemetente = "[email protected]";…
-
0
votes2
answers167
viewsFetch information from a td by jquery
I have within my system a kind of analysis table, where the client will check item by item filled in according to what the surveyor did. Inside this screen there is a section for Checklist, which is…
-
0
votes0
answers33
viewsSession is lost after post with Fileupload - ASP.NET
I am using Fileupload in a register page of a logged area, but when the post runs my Session is lost. I tried using Updatepanel and it didn’t solve the problem. Other solutions that I tried and also…
-
0
votes1
answer136
viewsHow to use Jquery autocomplete with C# ASP.Net?
Guys, I’m trying to use Jquery autocomplete in C# from a method that brings me a list of database clients (the database is the Northwind provided by Microsoft), but I’m getting an error that I can’t…
-
0
votes1
answer163
viewsHow to check if you are registered through Monthecalendar ? C#
Talk good morning guys! I’m having a little difficulty regarding use of Monthecalendar... I have a scheduling system by DATA, which after registering the given event, it is presented in…
-
0
votes0
answers73
viewsExport dataset in excel Asp.net
I created a program to export a Dataset to excel at runtime via Response, but when opening the file a message of incompatibility between the file format and the file extension is displayed. Follows…
-
0
votes1
answer327
viewsHow to create a list of Roles in Claim using ASP.NET Core
I made an authentication using Claims with cookies in the ASP.NET Core. In the Method below, the object by parameter brings the login information and inside it has a list called PerfisDeAcesso. How…
-
0
votes1
answer72
viewsTreat and Save List in Asp.Net MVC Controller
I have a Customer Class, which uses 1 or several systems. public class ClienteEmpresa : Pessoa { public virtual ICollection<TipoDeSistemas> TipoDeSistemas { get; set; } } In my Action Get…
-
0
votes1
answer116
views -
0
votes2
answers163
viewsHow to make an ASP.NET Core Post API without using MVC?
I don’t work with ASP.NET Core Apis until I need it for a project written in C#. So I created with a standard project, with the following controller: [Route("api/[controller]")] [ApiController]…
-
0
votes1
answer286
viewsHelp with Decimal . Net Core 2.2 recording
I have a system in .NET CORE 2.2 where I am facing a problem in recording decimal numbers in the database MySQL. Using as an example the decimal 19.99: By MAC writes correctly; By Windows writes…
-
0
votes1
answer85
viewsI cannot call an asynchronous method in the view
I’m trying to call this method asynchronous in the view but I can’t. private async Task LogOff() { RedirectToAction("Index", "Home"); await HttpContext.SignOutAsync(); } This is one of the ways I’m…
-
0
votes1
answer51
viewsParameter Crossing in ASP.NET
I have the following code: Admin Page: private void Salvar() { Session.Add("Salvar", txtSobre.Text); try { if (txtSobre.Text != string.Empty) { Session["Salvar"] = txtSobre.Text.Trim(); } }…
-
0
votes0
answers696
viewsCannot read Property 'Name"' of Undefined at Object.Val [as updateDirectives]
I’m doing an Asp.Net Core Web API with Angular 7 CRUD and I’m having trouble in the final phase, just when I enter my angular localhost and open the console, I come across the following log (Note,…
-
0
votes1
answer167
viewsError When Mapping Idatareader with Automapper
I have this typing error when trying to map a Sqldatareader coming from a previous, mapping with Automapper Error An unhandled Exception of type 'Automapper.Automappermappingexception' occurred in…
-
0
votes0
answers40
viewsAutomapper mapping returns Zeroed values
I have the following problem, when executing a query of a procedure, its response to being mapped returns the values of the properties with null value. My Datareader with Automapper Mapping public…
-
0
votes1
answer188
viewsHow to implement a text file export/import layer in DDD and how it will relate to the other layers
I’m basing myself on an Eduardo Pires project Here and I have some questions about implementing a unique layer for importing and exporting database information in csv, txt, xls, among others. For…
-
0
votes0
answers114
viewsCould not find specified column in Results
I have a code to search in two tables, a search the logo and the other the images, the first he does normally, does the reading and everything else, in the second he already error, the code is as…
-
0
votes1
answer795
viewsPlay private videos with the Youtube API
Good afternoon people, I’m trying to make an integration with the Youtube API, where the videos can be played by an iframe on my page, which by the way is in ASP.NET. The documentation gave me this…
-
0
votes1
answer37
viewsFailed to send email ASP
I have the following code for sending emails, but it is giving error, does not inform of much information just appears "Failed to send email." I’ve changed the door, changed it EnableSsl for true…
-
0
votes1
answer66
viewsView does not render after Return - Asp.net MVC
Good afternoon, you guys! Following scenario: I have a search button in my Layout that uses the text field and select to send data to javascript, which calls an action, which calls the repository…
-
0
votes1
answer37
viewsAbnormal error entering a Methodinfo page.Invoke "Parameter count error"
I’m calling the following function put it gives this problem "Parameter count error" when executing: url = (string)miScriptReference_GetUrl.Invoke(this, new object[] { scriptManager, value, false…
-
0
votes1
answer63
viewsError trying to use Xunit
I’m trying to use XUnit to test my application, but I am getting this error at the time of injeção de dependência. I get the following error: Message: The following constructor Parameters Did not…
-
0
votes1
answer44
viewsHow to connect two Applications in the same instance of Localdb
I have a problem when connecting with the same instance of localDb in another application in the same solution. Detailing the project, I have an ASP . NET MVC5 application in the solution and also…
-
0
votes1
answer35
viewsGenerate table of acquisitions that were performed Upload
I’m developing an ASP.NET Core application. And I was left with some questions, I was able to find some tutorials on how to upload pdf files, but now I need these files to be listed in a table for…
-
0
votes0
answers26
viewsFill screen with data from an auxiliary table
I created a Service Order registration, the insertion is working perfectly, I’m trying to create the change page, this screen brings all the data, I just can’t list the items in the table. Follows…
-
0
votes1
answer126
viewsSynchronization of events in javascript
I am working on a web application that has a framework, this framework was developed in ASP.net, where I can add javascript to the screens. On one of the screens I added a digital signature, in…
-
0
votes2
answers48
viewsI need to select the last id of a Viewdata
I have a ViewData with my production orders. I’m making a app where an operator can create a new production from the selected production order, but the ideal was that he did not need to…
-
0
votes1
answer92
viewsViewbag Life Cycle in C# MVC
I know the life cycle of ViewBag of C# MVC, is by request. Doubt If I set one ViewBag with the same name in several controllers, there is the possibility of the set information being read /…
-
0
votes1
answer24
viewsLambda in related classes (EF Migrations)
It’s been a while since I’ve dealt with FE so I doubt it. Have the classes Product and Producthow much and need to make an inquiry in the products with quantity equal to 10; I tried to: var retorno…
-
0
votes1
answer43
viewsPick up time from the nearest array to the current time
I have the following Json: { "cod": "200", "message": 0.0055, "cnt": 40, "list": [ { "dt": 1560319200, "main": { "temp": 15.15, "temp_min": 14.49, "temp_max": 15.15, "pressure": 1021.11,…
-
0
votes1
answer68
viewsError trying to Edit PK and UK on ASP . NET Core
I would like to know how to manipulate the Unique Keys and Primary Keys with Entity Framework. Whenever I try to edit an attribute and pass the same value it had before, it returns me an error: "The…
asp.net entity-framework asp.net-core asp.net-identity entity-framework-coreasked 5 years, 3 months ago Snyp 13 -
0
votes1
answer32
viewsASP.NET read data from a POST ajax
Below is my "form" I want to send to the server in an ajax post $('#ajaxButton').on('click', function () { const ajaxFormData = { nome: $('#nome').val(), zap: $('#whatsapp').val(), email:…
-
0
votes1
answer1697
viewsJavascript runtime error: Unable to get the indefinite or null reference style property
I have this mistake below: I am trying to avoid this error by using the check below: $(document).ready(function () { if (document.getElementById('panelActivex') != null) {…
-
0
votes1
answer194
viewsEdit C#XML file
I’m having a little difficulty editing an xml. I get the following xml: <cteProc xmlns="http://www.portalfiscal.inf.br/cte" versao="3.00"> <CTe…
-
0
votes1
answer325
viewsMobile Validator in a Rest Api query
Today I use SMS sending system for our customers who are registered on Tiny ERP, but I am in need of a mobile validator to be able to send scheduled SMS that are saved in a local bank. The problem…
-
0
votes1
answer30
views.NET fix URL sent in a POST Request
Good afternoon Amigos! I have a problem receiving a URL with the POST method. I make a request ajax as below: $('#ajaxButton').on('click', function () { const data = document.referrer.toString();…
-
0
votes0
answers19
viewsModal inside a Peater
I have a link inside a Repeater that calls a modal to display more details of the list that is being displayed by this Repeater. The problem is that I am not being able to show the modal for each…
-
0
votes1
answer406
viewsWebdriver Firefoxdriver, run checkbox click
I am creating a robot to log into a page, mark a checkbox and download an export file. However I am not able to run checked in a checkbox. I am using Selenium Webdriver with Firefoxdriver with the…
-
0
votes0
answers400
viewsWebdriver Firefoxdriver Selenium download file
I am automating the download of a file .xlsx of a website with Selenium with the FirefoxDriver but I can’t interact in the download pop-up of the site! There’s how I interact with the pop-up by…
-
0
votes1
answer123
views'Iorderedequeryable<Condominium>' does not contain a Definition for 'Tolistasync'
I’m getting the following error: as in the image below: In that part of the Code: public async Task<IEnumerable<Condominium>> FindCondominiumAllAsync() { return await FindAll()…
-
0
votes1
answer50
viewsAmbiguity error Asp.net mvc
with this controller: public ActionResult Create([Bind(Include = "ImagemId,Image,ImagemTipo")]Imagem imagem,List <HttpPostedFileBase> upload) { if(upload != null && upload.Count> 0)…
-
0
votes0
answers262
viewsEF Core - "A command is already in Progress"
I am requesting a Function in the database where it returns the values to be saved, but before saving I need to make a check if there is no same data, when I do this check with EF core it returns me…
c# asp.net entity-framework entity-framework-core asp-net-coreasked 5 years, 1 month ago iago soares 92 -
0
votes1
answer32
viewsModeling Error Asp.net Code First
I’m having an error in making an Migration... First I’ll say what I want, so you can understand, there’s inconsistency, but I’ve tried a lot and I couldn’t solve it. What I mean by this modeling is…
-
0
votes1
answer249
viewsMount a Datatable ASP.NET MVC
I need a help on how to mount my datatable inside my Controller, from a search. First is a filter with an Optionlist that chooses csv base name, for example Base01.csv, Base02.csv and a Num_cli text…
-
0
votes0
answers27
viewsHow to structure the partialView To make the modelBinder correctly?
I have a form that was broken using partial view, there is only one Create for all of them, and then I think there is nothing wrong, when trying to submit the form I got the following error..... `…
-
0
votes0
answers381
viewsProblem with Cors C# Asp. Net
I’m having enough trouble solving a CORS error. I am following the following steps: I added the CORS Nuget package to my project. I’m adding the code config.EnableCors(); in my class startUp. I…
-
0
votes0
answers23
viewsIgnore class attributes using Datamember C#
I’m trying to return a json from a controller by ignoring some of the fields in it. Controller: [HttpGet] public IActionResult Get() { var result = _service.Generate(); if (result == null)…