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
answers42
viewsAutomatic log out in Asp.Net Core
I’m using Identity in an ASP.NET CORE project, but I’m having problems uploading the project into production. When making a POST it sends my information normally, but when changing page and sending…
-
0
votes1
answer1023
viewsUse Forms Authentication in an ASP.NET Core application
I’m migrating a website ASP.NET Web Forms (.NET Framework 4.7) to ASP.NET Core (but still using the . NET 4.7 as "target framework") - the goal is to use Razor Pages, dependency injection and other…
-
0
votes1
answer53
viewsParse URL image
How can I do instead of sending an parse to the location it parses an image from a remote address or a url. Because if I try to replace the address: C: Users Format Downloads JRMJ.jpg with a URL the…
-
0
votes2
answers234
viewsPass two parameters at once to the controller - A parameter is in an Input Group
Good morning, everyone. I’m new to Asp.Net and I took a personal project to do, but I’m having trouble passing parameters to the controller. I don’t know how to pass more than one parameter at a…
-
0
votes1
answer323
viewsHow to load viewmodel fields dynamically into Asp.net core mvc
I have a 1:N relationship between the Person and Contacts classes. In my Edit view, I receive a viewmodel containing a contact list. In my View, I’ve made a single for which you should scroll…
-
0
votes1
answer20
viewsData sent to Model Clean when changing Page?
A question that came to me now, based on this post: Building Customizable ASP.NET MVC Menu If I popular my model of Menuitem when the user logs in, it will popular, for example, with the following…
-
0
votes0
answers41
viewsDoubt - Send Ajax at Checkbox Click (Performance, Network)
I have a table in a view, which lists the modules, with each module and each user, and a checkbox that indicates whether or not the user has access to the module, and I want in the action of…
-
0
votes1
answer1180
viewsCannot convert Implicitly
I’m getting the following error: Unable to convert from "Tclient" to "Easysistema.Models.Applicationclient" public class ClientManager<TClient> { private ApplicationDbContext _context; public…
-
0
votes1
answer175
viewsName property does not work using Razor Hiddenfor
I am creating several fields dynamically using Asp.net Razor and for this I am passing the index to a partial view and setting the name property of each field. Everything is working fine with all…
-
0
votes0
answers47
viewsProblems removing items from a List<Viewmodel> when Row is removed using Javascript
I have a contact list that is dynamically loaded using Razor and Javascript to remove lines and reorder field positions. The problem occurs when I click the delete log button and delete all contacts…
-
0
votes2
answers234
viewsSelectedvalue error of a dropdownlist in ASP.NET
I have an Asp.Net form for vehicle registration, where there are DropDownList which are filled with database data. However, clicking Save returns the error System.Exception: 'Unable to record…
-
0
votes1
answer144
viewsVersion of ASP.Net Core
Good afternoon, I’m starting with Dotnet Core, and when I create my first project choosing the option "ASP.NET Core Web App(. NET Core)" in the next screen appears me only the versions below ASP.NET…
-
0
votes1
answer89
viewsHow to send two integer parameters to an Asp.net MVC Controller using Ajax
I have a composite key table (Personal and Professional). The Personal property is in a Hidden and Profioid is accumulated in a data-id. Stays two information must be passed to the controller so I…
-
0
votes1
answer27
viewsInternal Server Error - Iauthentication
I am with the problem presented below and do not know how to solve, the system is complaining that can not access my class Iauthentication. follows below the error presented. Below my controller…
-
0
votes1
answer158
viewsHow to call my view Asp.Net MVC with ajax
I am starting my studies with Asp.Net MVC and I am able to call a view from the main menu. I have an initial view "_Layout" with the following menu item: <li> <input type="radio"…
-
0
votes1
answer82
viewsRedirect to ASP.NET MVC login screen constantly
constantemnte while browsing the site the user is being redirected to the login screen. I myself keep browsing several screens by clicking on the menus and randomly the system goes to login. I have…
-
0
votes0
answers58
viewsUpdate of Telephone Array in the database
I’m trying to update information in my database where I have 1:N amid Clientes and Telefones, but I am not able to perform such update, because sometimes it will be necessary to remove a phone that…
-
0
votes0
answers108
viewsTwo Viewmodels in one View
I have a problem, let’s explain: I have a page called Index where I re-address all the clientes from my database in a table, in this table there is a delete button that opens a Modal de Confirmação…
-
0
votes2
answers62
viewsRequest API not working on ASP.NET Core 2.1
I’m having trouble testing my end-points with the post and Asp.net core 2.1. Controller Base public class ControladorBase : Controller { protected IMapper _Mapper; public ControladorBase() { }…
-
0
votes0
answers97
viewsAdd deleted files when publishing ASP.NET Core
In my Asp.Net Core project I have some deleted files from the project. Only when I publish these files do not appear in the wwwroot folder of the project. <ItemGroup> <None…
-
0
votes1
answer268
viewsBinding a checkbox with Viewmodel without the use of Razor (Asp.net core MVC)
I’m having problems with Razor... I need to create a checkbox field and Binding with my viewModel using pure html. Only I’m not being able to do the Binding correctly with the bool property and even…
-
0
votes1
answer57
viewsError creating custom ASPNET MVC validation ( Client Side )
I’m having a problem creating a custom validation using dataannotations by aspnet mvc. My Model: public class Usuario { public string Nome { get; set; } [Idade(18)] public string Senha { get; set; }…
-
0
votes1
answer61
viewsIt is possible to generate routes dynamically in ASP.NET MVC4
I am fixing some URL’s of my site and need to create several different routes for each page, for example: routes.MapRoute( name: "ComoVenderMinhasImagens", url: "como-vender-minhas-imagens",…
-
0
votes1
answer91
viewsHow to call a javascript function after a webforms download
I have an aspx page with a grid and a linkbutton. When clicking on this linkbutton I call a function that hangs the screen and places a loading while downloading a file on the server, after the…
-
0
votes1
answer39
viewsHow to Create a filter between two dropdowns using jquery
I have two dropdowns (state and cities) in select "status" I have the options of two states ex: <select name="state"> <option value="NY">New York</option> <option…
-
0
votes1
answer104
viewsI click the button and do not add the div - C# Asp.Net
I click the button and it does not add me to div, but sends it to the database, someone can help me? C# protected void img_btn_enviar_nome_Click(object sender, EventArgs e) { UtilizadoresBot…
-
0
votes1
answer33
viewsHow to update the Index of a field using Javascript in Asp.net MVC
I’m creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I am facing problems, because all fields are reordered Indexes, except those that…
javascript asp.net-mvc asp.net asp.net-mvc-5 javascript-eventsasked 5 years, 11 months ago Master JR 1,853 -
0
votes2
answers226
viewsHow to Insert a parameter from my system into an external URL
So, we have a website that when passing a user’s code, it shows the location of the same. Example of the URL:…
-
0
votes1
answer87
viewsI cannot receive the view parameter in the controller
Remembering that when executing it does not return any error Controller using CRUD.Aplicação; using DocumentoObjeto.dominio; using System; using System.Collections.Generic; using System.Linq; using…
-
0
votes0
answers61
viewsI can’t draw a Polygon on Google Maps
I’m trying to square it with the coordinates, but it won’t show. There is no error in the browser, the map is created normally, only the square does not appear: var map; function initialize() { var…
-
0
votes1
answer25
viewsGlimpse ASP.Net working with Dapper
I just saw a piece of content where I studied performance and optimization in ASP.Net applications. I was presented with a diagnostic tool called Glimpse. The operation of the tool is perfect, it…
-
0
votes1
answer525
viewsASP.NET MVC - How to upload a file with more than 5mb using ajax?
I am using the following code to perform file upload: HTML: <form action="/Employee/FileUpload?UnityId=1&ObjectId=1" data-ajax="true" data-ajax-failure="OnFailure" data-ajax-method="Post"…
-
0
votes1
answer606
viewsPass id value to from one view to another - Asp.Net MVC
I have the following view where I have a list of articles registered in the database, then I have the evaluate button that redirects to another view where it is in another controller, I want to pass…
-
0
votes1
answer70
viewsAngularjs: Rendering components causes request loop
I am working on a legacy project, written in Angularjs 1.5.8 and ASP.NET 4.5. In order to upgrade the project Clientside to Angular, the first step I had to take was to compose the system. However,…
-
0
votes1
answer54
viewsHello, my problem is that the email is being sent only when I check the email instead of showing the sender’s email shows the recipient’s
protected void btnEnviar_Click(object sender, EventArgs e) { string desEmail = "[email protected]"; string remetenteEmail = txtEmail.Text; //O e-mail do remetente …
-
0
votes1
answer266
viewsText field does not take Asp.net MVC value
I have a text field in my system called NomeEspecificacao, however when I fill any value in it, it is always returned null in my Action, ie never comes the word I write in the text field. View code:…
-
0
votes0
answers247
viewsSystem.Missingmethodexception: No constructor without parameters has been defined for this object
I’m getting the following error: System.Missingmethodexception: No constructor without parameters has been defined for this object. My Controller: using BecomexTeste.Models; using…
-
0
votes1
answer61
viewsDoubt with Asp.NET MVC Update
Sorry for the question, I am learning Asp.NET with EF and am having problems performing a specific Update. I want to make a system where there are cash transactions between accounts. The structural…
-
0
votes1
answer77
viewsreturning blank autocomplete
I do a search in my database to find the name of the products without exceptions (I don’t know if it’s relevant, but this return is a string list) var listaDosProdutos =…
-
0
votes1
answer275
viewsDropdownlist with Selectlist Item
I am trying to create a Select List, but in case it is returning it to my view: Microsoft.AspNetCore.Mvc.Rendering.Selectlistitem so is not returning the Cargos that are in my database and here are…
c# asp.net asp.net-mvc-5 asp.net-core entity-framework-coreasked 5 years, 10 months ago Matheus 616 -
0
votes0
answers23
viewsHow to create the event for a textbox in Runtime?
foreach (SobralFoodContext.Produto produtos in categoria) { string str = "<div class=\"col-sm-4\"><div class=\"card\"><div class=\"pricing-list dark-pricing\"><div…
-
0
votes1
answer224
viewsIOS emulator in Webview (iframe) losing the Asp.net session
I have a problem with my project in Ionic, below follow the versions. Ionic: 4.1.2 ASP.NET: 2.1.502 A little about my project... It has a route in the application where it generates a Webview…
-
0
votes2
answers224
viewsException treatment not working
Hello, I am studying C# and I was trying to do exception treatment using middleware, to send the message and the exception code to the client, but it is not working very well. Debugging, breakpoint…
-
0
votes1
answer27
viewsRecover Varbinary Asp
Good afternoon, I wonder how I can recover an image saved in a database like varbinary for an img tag on Asp. My code is as follows: <% dim objCmdI, RsImage, vsImage call AbreConexao() Set…
-
0
votes2
answers130
viewsI have Error in viewModel ASP.NET MVC C#
What I looked for, we used viewmodel to then access in the view several models, my problem is that I have an error that does not allow me to access the Model. And everywhere I look, I can’t figure…
-
0
votes1
answer307
viewsInsert Array into JSON
I have a question, I want to insert a list within a field JSON. How do I make the strings that are in the list cities become part of the city options for the state Gurajat? The code is like this:…
-
0
votes1
answer830
viewsError Mapping types. Mapping types: Icollection`1 -> List`1
I’m having a problem converting a List for ViewModel, using the ToListViewModel. Faturacontroller.Cs FaturaViewModel faturaViewModel = new FaturaViewModel(); faturaViewModel.mensagens = new…
-
0
votes1
answer235
viewsWeb Api does not return related data
I’m doing some tests with Web Api (Asp.net core). And with Eager Loading I’m trying to upload a related list, but what I get from Postman is this:…
c# asp.net web-service asp.net-web-api asp.net-coreasked 5 years, 7 months ago Márcio Sebastião 769 -
0
votes0
answers31
viewsHow to perform 2 different submits in the same action?
I have a view with 2 different forms, when performing the first Submit I receive the data in the controller normally, when performing the second Submit the data comes all as nulls. How can I fix…
-
0
votes1
answer28
viewsProblems when performing a MODEL POST with AJAX on ASP.NET CORE MVC
I’m having trouble doing a post of a complex template using AJAX on Asp.net. Modelhave some properties that represent other Models, but at the moment, I just need to initialize them with NULL. I…