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
answers20
viewsId value is not changing in ASP.NET MVC 5
I am creating a CRUD in ASP.NET in my project, however, started to give a problem. When I try to delete a Product, it passes the totally different Id to the other View, an Id that does not match the…
-
0
votes0
answers63
viewsDecimal is not accepting decimals - ASP.NET MVC 5
I am doing a project in ASP.NET, but it started to give a problem, the field only accepts to receive integers, every time I put a decimal number, for example 20.10, it simply does not let me insert…
-
0
votes0
answers41
viewsShopping Cart Doesn’t Let You Add More Items After Cleaning It
I’m making a shopping cart for an E-commerce test on ASP.NET MVC, working with EF6. I was doing the logic, the cart it adds products and also removes. However, every time I add several products, and…
asp.net-mvc asp.net entity-framework asp.net-mvc-5 entity-framework-6asked 3 years, 10 months ago Leo 29 -
0
votes1
answer47
viewsHow to replicate the same image in the header? C# Asp.Net
I am trying to replicate the same image in the header of all pages, but it appears broken. What can it be? It is a program done in c#, Asp.net. I already searched but could not fix. From what I…
-
0
votes0
answers24
viewsApplication . net does not create service in windows (sc create)
I have the following code: public static void CriarServico(string nomeServico, string caminhoExecutavel) { try { string arguments = string.Format("create {0} binPath={1} type=own start=auto",…
-
0
votes1
answer31
viewsHow to 'scroll' a panel to the end? Javascript + ASP.NET
I have an ASP.NET panel that shows recent messages and I want the scroll to always remain at the end (messages are from bottom to top, as in Whatsapp). My problem is that I can’t at all make the…
-
0
votes1
answer39
viewsERROR: cannot Convert from 'int' to 'CRUD.Models.Times'
hello! I am doing a crud project on Asp net mvc and my code presents the following error: Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot Convert from…
-
0
votes1
answer50
viewsHow to put an ID in a variable? ASP.NET MVC
I currently have a view where a Table(Orders) is being loaded another table(Colors) I want each order to be a list of the color that has the same ID as the order. My Tables: public partial class…
-
0
votes1
answer44
viewsHow to return a JSON in ASP.NET API that has another JSON inside?
I don’t know if my question expresses well, but the kind of feedback I need is something like this: [ { "Id": 0, "Name": "string", "Image": "string", "Why": "string", "What": "string",…
-
0
votes0
answers19
viewsMultiple requests for an API result in 500 Internal Server error
I have an API that makes two requests on Microsoft services (POST and GET) that receive a code and bring some information about employees. public async Task<string> AdquirirEmail(string…
-
0
votes2
answers64
viewsHow do I enable uploading large files to classic ASP on IIS?
I have an upload system in Classic ASP. I can upload up to 200KB without problems, but when I try a bigger size the error occurs: Request Object error 'ASP 0104 : 80004005' Operation not Allowed…
-
0
votes0
answers16
viewsCommunication between Applications using Httpclient with SSL error
I have an IIS 10 server with two applications developed by the company. The first, older, is an MVC developed in . Net Framework 4.5. The second, newer, is an API developed in . Net Core 3.1. In…
-
0
votes1
answer17
viewsDo not select any dropdownlist value
Hello I have the following dropdownlist: @Html.DropDownListFor(m => @item4.Status, new List<SelectListItem> { new SelectListItem { Text = "Sem malha", Value = "Sem malha"}, new…
-
0
votes0
answers45
viewsCreate dynamic html table by setting the class or id to rescue later with jquery
I’m creating a dynamic table as the user adds content. Then I need to take this data and create the object and send it to the controller, to create the table I used the following way: function…
-
0
votes1
answer36
viewshow to use DATA_FORMAT() in mysql with C# Asp.net?
I need to take the data of the dates and pass them to the format dd/mm/AAAA, because it comes from Mysql AAAA-mm-dd to then move to a databinder that is in a Repeater on the front, someone knows how…
-
0
votes1
answer38
viewsMy JWT+Bearer token always returns me unauthorized (401) C#
I have a system for studies, totally decoupled the front-end of the back-end. I implemented JWT+Bearer, however I log in by the controller and it returns the information with the token: But when I…
-
0
votes0
answers24
viewsJson deserialize array for object
I’m trying to call a web API that returns me a json with multiple values as specified below json received [ { "total_documents": 2, "total_in_this_page": 2, "current_page": 1, "total_pages": 1 }, {…
-
0
votes0
answers47
viewsRemove seat seats on the database side with Asp.net core Entity Framework
I have a method that I receive a string, does the search and returns all the data that is equal to the word I passed, like this: public async Task<List<ProductDto>> GetAllAsync(string…
-
0
votes1
answer59
viewsHow to set hostname in publication Asp net core 3.1 selfHosted
I have a working project which the publication preference is in the format of publish to self hosted folder (selfhosted) (without using IIS). Reason for this: the goal is to decrease the…
-
0
votes0
answers52
viewsError adding mvc controller using the Entity framework
I’m trying to create a MVC application using Entity Framework Core, and Asp.Net Core MVC 5, using Mysql through Pomelo.EntityFrameworkCore.Mysql, the domain class is defined as: public class Aluno {…
-
0
votes0
answers47
viewsError calling endpoint: Exception has occurred: CLR/System.Nullreferenceexception C#
Guys, I’m trying to generate a spreadsheet filled with the data I have from SQL server, I can get that information right but when I call a method responsible for taking that information and…
-
0
votes1
answer33
viewsEF: How to return only a few columns from the database?
I’m having trouble returning a collection of objects from the database with just a few columns selected. I searched several solutions on the web and the vast majority presented the solution below,…
-
0
votes0
answers21
viewsHow to disconnect a user at the end of a given process in ASP.NET Identity C#
Good morning guys, I’m developing a solution where in a certain process of buying in e-commerce the system will automatically login using the data of a default user. The whole process will be…
-
0
votes0
answers23
viewsThe button click event fires Modalpopupextender but does not turn off
MODAL appears, but NO longer wants to leave! How do I fix this? I have a code in ASP.Net, . Net Framework 4 with Visual Studio 2010. <asp:button ID="hButton1" runat="server"…
-
0
votes0
answers13
viewsMultiple sorting in Datatable with Serverside
Greetings. I have a table generated with the help of the Plugin Jquery Datatable with the ServerSide enabled and running a Script from the server side ASP.NET. Only that I need this table to be…
-
0
votes0
answers41
views -
0
votes1
answer41
viewsHow to filter a List record within another list c#
I have a class of App where in that class contains a ICollection<Comentarios> Now I need to filter ALL comments who have Status == Aprovado, where this Status is an Enum. I tried to do it this…
-
0
votes0
answers35
viewsHow to set up a WEB application developed in C# ASP.NET (.NET Framework) for a server configured in Medium Trust?
Guys, I’m having the biggest headache to host a website, developed in C# ASP.NET (.NET Framework), MVC, on the server of LOCAWEB. Their server is set to Medium Trust and their confidence level is…
-
-1
votes1
answer433
viewsMasterpage error not located
My website that is giving "Masterpage not located" error, and all files have been published:
asp.netasked 10 years, 7 months ago fabricio_wm 1,090 -
-1
votes1
answer376
views -
-1
votes1
answer101
viewsError logging in to server hosted on local IIS
When I test on my machine the login works perfectly, when I share over the network returns me the following error: A network-Related or instance-specific error occurred while establishing a…
-
-1
votes1
answer162
viewsReturn the same URL and change the aspx Asp.net label
I am doing a validation in a sales system, where if the seller clicks on a customer who is in debt access is not allowed. So far no problem, I made the connection with the DB and validation. I would…
-
-1
votes4
answers1496
viewsjquery datepicker error does not work
I have the script defined as follows: <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css"/ > <script…
-
-1
votes2
answers1950
viewsAccess is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) - How do I resolve?
The site only gives error on the server, locally ta ok! Look: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Description: An unhandled Exception occurred During the…
-
-1
votes1
answer85
viewsSendmessagetowincontrol error - A control type was not specified
I have a web app that generates barcode tags. In order for a client to be able to print, I need to access the port WITH computer. I created a project that does this function. But in order for the…
-
-1
votes1
answer2541
viewsInput sequence was not in an incorrect format
I am receiving the "Input sequence was not in an incorrect format" when I make an inclusion in the bank and update the gridview. But this only happens for the first record. From what I tried I…
-
-1
votes1
answer147
viewsHow to use or add aspx pages in an Asp.Net MVC project
You can use or add to my project that is on Asp.net MVC a page that is ready in webforms (aspx and Cs) ? If yes how do I add the page ?
-
-1
votes1
answer934
viewsASP.NET MVC vs Angularjs with WEBAPI
In a web project (type a "small" ERP, rs) where some companies would manage their branches and there could be several connected users, which would be better in terms of performance and performance…
-
-1
votes1
answer44
viewsWhat Dlls do I need to create an oracle project in visual studio 2015?
Hello person all right? I am currently trying to create a new project in visual studio 2015 with the new version of oracle RC1 update 2 I would like to know which Dlls of Devart need to configure my…
asp.netasked 8 years, 5 months ago Marcelo Lopes 91 -
-1
votes2
answers837
viewsHow to get the creation date of a file that is on an FTP server c#
I am using framework 4.5 and would like to know how to get the date and time of creation of a file that is on an SFTP server, do not want to download it, just know the date and time it was created.…
-
-1
votes2
answers124
viewsPassing variable values in ASP.NET and Mysql
Hello, I’m developing a page in Asp.net and I’m having trouble passing values from a Mysql SELECT to variables. I don’t know where to start and would appreciate examples of how to do.
-
-1
votes1
answer394
viewsHow do I view the details of an ASP.net Session on IIS like in Java using Tomcat?
In the Tomcat manager, we have to list open sessions and see the "details" of each one, including see a list of all session variables (key-value) of that session, as shown in the example image…
-
-1
votes1
answer92
viewsHow to set the values of a Propertyinfo of the instantiated classes within a class?
I am doing a generic method for rounding values of a class(T), but I also have the classes within this principal(T), these classes I can set in this way: IEnumerable<PropertyInfo>…
-
-1
votes1
answer447
viewsAsp.net Identity Decrypt
You can decrypt the password generated by Asp.Net Identity?
-
-1
votes1
answer76
viewsselect data from a sql server database in C#
I made a precedent that takes all the data from all the columns of my sql table of interest, in my Asp application in c# I can put all the rows in a list ,but I need to refine this search by taking…
-
-1
votes1
answer539
viewsHow to display dynamic images from a Listview?
I created a div with a Listview where a Checkbox and a Imagery which are loaded into the Page_load. I need that by clicking on one of the Checkbox by selecting from the image, it is created…
-
-1
votes1
answer153
viewsDoubt Interface Asp.net mvc
Good night, I have a doubt, I chose to work with Generica interface and my doubt is: Every entity needs to have an interface inheriting from the Generica interface ? Ex: public interface…
-
-1
votes1
answer40
viewsAPI Amazon Product Advertising
I am using the third party API (Nager.Amazonproductadvertising) to search for books and other items in the Amazon Catalog, when the application was in test did not present any error, just put on the…
-
-1
votes1
answer77
viewsSystem.Nullreferenceexception was unhandled by user code
When compiling my application I received this error from the image below, would anyone know how I could solve?
-
-1
votes1
answer55
viewsPossibility to use MAX in Datetime Lambda expression fields
There is the possibility to use the MAX in expression consultations lambdas, for example: I would like to take all registration at the age of 18 years and get the only last record entered in the…