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
-
1
votes1
answer369
viewsDeserializeobject
I’m trying to use the DeserializeObject, to generate objects through the result json: { "cod": "200", "message": 0.0068, "cnt": 40, "list": [ { "dt": 1560286800, "main": { "temp": 17.14, "temp_min":…
-
1
votes1
answer57
viewsProblems creating Postgre backup on Asp.Net MVC
I didn’t find much information about creating Postgre backups with C#, so I created this post. The process is simple... I am creating a process that executes a command and passes some parameters…
-
1
votes1
answer133
viewsProblem downloading a file with an accented name
I have a function that returns a file to download, when the file name has accented characters and a certain size, the downloaded file comes with the wrong name (in Chrome comes the name of my…
-
1
votes1
answer215
viewsHow to access Ihostingenvironment outside of the Controller in ASP.NET Core?
I’m updating an ASP.NET Framework API to ASP.NET Core and I’m stuck in a problem. No. NET Framework used the following: public GmailConnection(){ serverCredentialPath =…
-
1
votes1
answer230
viewsHow to run an Alert only once in an Asp.net MVC View
I have a project in Asp.net mvc and in my view has an Alert that runs whenever the page is loaded (it closes automatically). The problem is that every time I make a Submit and the view is reloaded,…
-
1
votes1
answer175
viewsHow to leave field with bold values
Situation I have a table made in html called Payments and in it I have a column called values, I want to leave the fields with values in bold. Problem: There are collaborators who had value to be…
-
1
votes1
answer79
viewsStatuscode = 407, Reasonphrase: 'authenticationrequired under development only
I have an ASP.NET application that accesses a remote server (outside the company domain; external URL) to verify some data. When I run the application on development environment - localhost…
-
1
votes1
answer587
viewsOpening PDF in new tab using ASP.NET
I am testing the code below, but there is no action when I click button to open a PDF in new tab. You’re missing something below? Test.aspx Clique <asp:LinkButton OnClick="linkPDF_click"…
-
1
votes0
answers42
viewsForm does not appear on google maps in expanded mode
I’m a beginner in javascript and css. The program was developed in . net vistual studio. The problem is this: I have a page that has a map where I make a circle in a region of it. The behavior that…
-
1
votes1
answer99
viewsHow to make the Return Ok<Object> take multiple arguments
Good afternoon guys, I would like to ask you a question, I am creating a method within a webapi in Asp.net mvc to receive some data from the launch of a home visit, but I’m having an error in Return…
-
1
votes1
answer81
viewsHow to pass an Enum type parameter together with the Model for a Partialview - Asp.net Core MVC
I’m having a hard time passing an Enum parameter to a Partialview using Viewdata. It is giving conversion error (in Partialview), because the received type seems to be string or other type and is…
-
1
votes1
answer1726
viewsHow to check if a Date field is NULL C# ASP.Net
I have a webservice where I make a query in a table of my bank where I have a column of type Datetime and I am wanting to make a check if this field Datetime is filled or if you are NULL I’m doing…
-
1
votes0
answers12
viewsFilter table by button value (Datatable)
I’m making some changes to a client’s Asp.net project, and came across a table built in dataTable(). There are some buttons that should perform a 'filter' based on the 'type' of each table item, but…
asp.netasked 5 years ago Matheus Batista 39 -
1
votes1
answer158
viewsEntity Building and Corporate Ownership Modeling in the DDD CQRS standard
I am creating an ERP type application, and I am using the DDD CQRS Standard, where at the initial moment of the project I am creating the entities of customers, suppliers and carriers, where they…
-
1
votes1
answer35
viewsBring value Dropdownlist ASP.NET MV5
I’m bringing a dropdown of a table of Physicians in the View and it brings normally, but I want to take the value of it (Selected name) in the jQuery to bring other information after selected. But…
-
1
votes1
answer57
viewsData-Bind and Onclick on the same button
I have a button that has a data-bind, calling a function JS that is working perfectly. However, I need to call another function on the same button, only on C#, in class CSS of my page, if I leave…
-
1
votes1
answer57
viewsError executing a subquery in sql server
I am trying to return values where the date is between two fields of my page this field and max(field) This is the consultation: SELECT COD_SECAO , SECAO , CHAPA , NOME , DTNASCIMENTO , DATAADMISSAO…
-
1
votes1
answer363
viewsSpring V10 - Error in Abreempresa
When I try to open the company using the Abreempresa method, I get the following error 'Object reference is not defined as an instance of an object.' Does anyone know how to solve ? Thank you. The…
-
1
votes0
answers37
viewsHttpselfhost Serialize daughter entities + Session nhibernate
I have the following method: // GET: api/Pedido/5 [ResponseType(typeof(Orcamento))] public IHttpActionResult Get(int id) { using (OrcamentoRepository or = new OrcamentoRepository()) { var orcamento…
-
1
votes1
answer49
viewsSpecial characters on the return of the Request.Form method
Good afternoon, my dear, I have an ASP.NET Webform project that reads the form post using the Request.Form method. I play this method in a string but it comes full of space characters. s Excerpt…
-
1
votes0
answers72
viewsHow to handle an Exception of an http Request in Asp Net MVC
Hi, I have an app on ASP.net MVC who’s making a requisition http through a connection port that is available through a service, which is running on the server. The controller calls the method and…
-
1
votes1
answer214
viewsField validation problem in ASP.NET Core
The field Unit Value accepts only 3 digits after the comma. I need it to accept 4 decimal places. I wonder what might be causing this restriction regarding the formatting of this field. The code I…
-
1
votes0
answers39
viewsIs there a limit to subclass levels to use the Where function for query?
I am working on an internal statistical data system of my company and I came across a situation I had never seen before. I am consulting the API of a service and this returns me a JSON with many…
-
1
votes1
answer118
viewsHow to add a column with text in gridview by code Behind?
I make a SELECT in the bank and mount my gridview, after that I make another SELECT and needed to add an extra column with the values that came. I have a Foreach to go through all the lines of the…
-
1
votes0
answers135
viewsDate value coming 01/01/0001.00:00:00
I’m having a problem with my API when I try to rescue a date from a column in my table in Sqlserver I’m doing it this way using (SqlCommand command = new SqlCommand()) { command.Connection =…
-
1
votes1
answer51
viewsChange the default value of a Boolean in an ASP.NET select
I have a field on my system that needs to inform if the product is available or not, SQL is as bit( TRUE or FALSE). Entityframework generated a View with a SELECT True or False. <div…
-
1
votes1
answer119
viewsGet public site user IP
Good evening, everyone I made a web application with ASPNET and C#, and I need to get the user’s IP when he accesses the system. I researched if I found several ways, but I always have this…
-
1
votes0
answers21
viewsASP.NET Core API for access to more than one Angular Apication
I have an API that when launched, it goes up at the following address: http://localhost:49013/api/values. I realized this is parameterized in the file launchSettings.json, that is like: {…
-
1
votes0
answers35
viewsProblem sending View information to Controller
I’m doing a simple CRUD on ASP.Net MVC and implemented a search box to search for a product in the database. But when I click search, the Viewmodel item passed in the Taghelpers is not sent to the…
-
1
votes1
answer42
viewsChange color Repeater cell
I’m making a system ASPNET c# WEBFORM, and food a REPEATER with information coming from the database. I would like a certain cell to have a certain color, according to information coming from the…
-
1
votes1
answer46
viewsField with Datetime format does not change the format to Date - Asp.net MVC
I need to show only the date format in a Datetime field, but only letters are appearing in the field (even if the value property contains a date). VIEWMODEL: [DisplayFormat(ApplyFormatInEditMode =…
-
1
votes1
answer32
viewsOn which project layer with DDD concept, should I create a function or routine for the reorganization of portions of a receivable?
I have an Asp.Net Core MVC project in which I am developing an Accounts Receivable. The whole project uses the DDD concept. I need to create a function to reorder the sequence of parcel records in…
-
1
votes1
answer18
viewsProblems getting a Viewmodel with decimal values using Ajax
When you Get using Ajax, viewModel is coming to the Controller with the fields reset. I’m creating the class manually, converting it and doing the GET. I cannot figure out the reason for the…
-
1
votes0
answers22
viewsSwap array type variable between 2 Webforms
I’m making a website in ASP.NET where I have an array type variable of type int in a Webform (we’ll call it Default.aspx.cs) and would like to pass this variable to another Webform (Data.aspx.cs). I…
-
1
votes0
answers39
viewsIs it possible for an entity to have 2 N-to-N relationships using Entity Framework?
I have 2 models: Cliente and Empresa, which need to have registered addresses. I created another template called Endereço to make the relationships N for N, in which it stayed this way: public class…
-
1
votes0
answers27
viewsWeb method query in Asp.Net
I’m making a query to plot the data in the chart Highchart, with interval of up to 1h the query is ok, but of 1h is already slow to generate the chart. [WebMethod] public static string SENSORES() {…
-
1
votes0
answers34
viewsHow to change the Postbackurl path of an Asp. Button?
I have the following situation: on my page . aspx I have an Asp.Button that, after running an Onclick event on Behind, runs a Postbackurl to another page carrying information through Hiddenfields.…
-
1
votes1
answer72
viewsThe Viewdata item that has the 'Name' key is of the 'System.String' type, but must be of the 'Ienumerable<Selectlistitem> type
Speak, guys, I’m new in the area of ASP.NET and studying Identity I came across a typo error when performing a new user registration. The project was done with the authenticity of the VS. I did the…
-
1
votes0
answers23
viewsPassing Datatable to a table-Valued Parameter in a stored SQL file does not work
I’m creating a revenue website. On my Masterpage (I am working on ASP.net), I have a search icon and when the user clicks on that icon, I will read three checkboxlists and pass the selected values…
-
0
votes1
answer149
viewsHow can I create a control that has subcontrols without explicitly adding a template?
I want to create a control exactly like a Panel. <asp:Panel runat="server"> Conteúdo <div>Content</div> </asp:Panel> I want to be able to put controls inside it without…
-
0
votes1
answer131
viewsWhat are the advantages of using ASP.NET’s formView control?
What are the advantages of using the control formView of ASP.NET?
-
0
votes1
answer159
viewsSum of a Sqldatasource result
I am developing a reporting system to control calls and need to take the result of a query and make a sum that brings me the total number of calls per sector of a certain number. I’m using Stored…
-
0
votes1
answer186
viewsDropdownlist does not work within Detailsview
I have a DetailsView with several fields and a DropDownList that should update the field sexoAnimal with Male (M) or Female (F). I added a ControlParameter in the SqlDataSource, the parameter takes…
-
0
votes1
answer267
viewsGenerating fields by ASP.NET code
I’m making a web application with ASP.NET and C#. In this application I can register several items of the same type, so it has a text field and a button on the side to create new text boxes. I’ve…
-
0
votes2
answers399
viewsListview inside Listview or Repeat inside Repeat?
I need to display some products divided by category, the categories are created by the user and both come from the database TB_CATEGORIA, TB_PRODUTOS, has how to do with Listview, Repeat? For…
-
0
votes2
answers1070
views -
0
votes1
answer510
viewsGlobal.asax file does not load
I have a project in Webforms and wanted to make routes in it. I followed an answer that they gave me in another topic and everything worked very well, but now I went to create another project and it…
-
0
votes1
answer1006
viewsSession variables in ASP.Net
I have an AJAX method that sends me a certain value, when requested, for a session variable (a list of strings in this case). Session variable private static List<string> ListData { get{return…
-
0
votes1
answer154
viewsHow to create a project to read tables from an existing project using Genexus?
I have a project done in C# with sqlserver database, I want in my new system to "take advantage" the tables of the old project, how to do this with Genexus?
-
0
votes1
answer1319
viewsHow to enable a button after completing the required fields?
I need the button btnprint is enabled only if the DropDown, the txtDateInitial and the txtDateEnd were filled in. They could help? <%@ Page Title="" Language="C#"…