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
answer1419
viewsSending notifications from Pagseguro Sandbox to local address (C# ASP.NET MVC)
I’m doing the integration of Pagseguro in an ASP.NET environment, and everything was going well until I got to the Pagseguro notifications part. As you can see in the image below, I have set the…
-
1
votes1
answer85
viewsHow to enable/disable a txt from a choice of a jquery radiobutton?
I need to enable/disable a field according to the choice in a radiobutton Validations This field should only be active when the "Inactive" radio button is selected Follows code: Radiobutton:…
-
1
votes1
answer64
viewsCreate nuget package from a REST web API application
I have a WEB API REST service in ASP.NET CORE 2.0 multiple projects(layers) in it. However, by larger forces, it cannot be used as a service. It was then suggested to create a nuget package for this…
-
1
votes2
answers1370
viewsHow to keep selected checkbox after refresh on page with localstorage JS
I’m trying to keep the checkbox selected even after refreshing on the page, this is my progress: // javascript var s_item = ""; function save(items) { s_item = items; var checkbox =…
-
1
votes1
answer38
viewsdoubts generic class Asp.net mvc
Good night, In my project I have an application layer where the class is structured as follows: namespace ProjetoTreino.Aplicacao { public class PessoaAplicacao { private readonly…
-
1
votes1
answer74
viewsHandle Json Format Action Return
Devs, I have a C# and ASP.NET application with an Action that returns a JSON array. When I return only a string I can deal with javascript now, when I return an array I don’t know how to handle in…
-
1
votes1
answer936
viewsImport data from an excel spreadsheet into the Epplus-database
Gentlemen, I have the following problem: I created the code below, I made some changes, however I cannot import my file. My application is in .NET, and the database is the Oracle Sql, and adapted…
-
1
votes1
answer463
viewsHow to load Fileupload image to <Asp:Image> tag?
My question is how to load the image directly from Fileupload for the tag <asp:Image> And if it is possible to make these validations by client side and validate type and size via jQuery.…
-
1
votes0
answers64
viewsError while compiling a web application
How to solve this problem? I have an application in dot.net and when compiling this message appears. I didn’t want to let this directory be default. How can I fix it? Would anyone have any idea what…
-
1
votes2
answers441
viewsError when connecting to oracle database using web programming on . net
When making attempts to connect to the bank I obtained the error according to the attached image. My application is web in . net, visual studio 2010, oracle sql database developed 3.1.07. My code…
-
1
votes1
answer62
viewsCreate Actions list with parameters and then run it
I would like to create a list of Actions with parameters and then do a foreach in this list and exit executing the methods, each with their respective parameters. Something more or less with the…
-
1
votes0
answers64
viewsChart in Asp.net
I am developing an Asp.net site where I need to upload files (.mat), and receive values in a list to plot line charts, with many points (about 200,000 points) on a single page. The issue of graphic…
-
1
votes0
answers31
viewsnhibernate oracleBulkCopy c#
According to the attached image, I have an attribute class accompanied by the method ListarMunicipio, where it has a list, in the method below I have public static void InserirOuAtualizar(Municipio…
-
1
votes1
answer1732
viewsReturn Datetime Json /Date(1519339100637)/
Good evening, I’m working with Ajax to return a json containing a data in the format Datetime but I’m getting in string format /Date(1519339100637)/. How can I convert to date and time format…
-
1
votes1
answer1749
viewsCapture IP and local machine name
I need to get the ip and name of the client’s local machine in case the user who will be accessing my system. My system is hosted on the network system and database. The commands I have used so far…
-
1
votes2
answers215
viewsIs it possible to have Identityserver4 and Authorization authentication in the API separately?
I recently asked a question in stackoverflow in English, but I may have expressed myself badly and I did not get the answer I wanted. Link in English. I have 3 different applications: Identityserver…
asp.net-mvc asp.net asp.net-web-api asp.net-core identity-serverasked 6 years, 6 months ago Raul Medeiros 152 -
1
votes0
answers92
viewsASP.NET Core NPM and webpack/Gulp
I created a project in Asp.net core using the Empty template (dotnet new web). For what I searched, to add packages like Bootstrap or jquery, we have to use NPM, which is basically to add the…
-
1
votes1
answer154
viewsProblem changing entity with E.F and Dapper
I have a Dapper query, where I search for an entity: var fatura = ObterPorClientedEDataVencimento(cobranca.ClienteId, cobranca.DataCobranca); The method and properties of my entity are in this Gist,…
-
1
votes1
answer72
viewsRadiobutton on the Repeater?
I need to make an Oncheckedchanged on a Radiobutton inside a Repeater, but I could not do it the normal way. there is how to create an event on a radiobutton inside a Repeater? <asp:Repeater…
-
1
votes0
answers342
viewsGrab first row and first column gridview Javascript
I’m trying to get the value of the first line and the first column of gridview through javascript, but it’s returning error. Keep going like I’m trying to do: var grid =…
-
1
votes1
answer104
viewsriding a Regex
I’m picking up a bit here with to assemble the Regex of a pattern I set up, which would be this: ALTERAC[AO,OES] [DE] CADASTRO[S] [-] SOCIAL What is between [ ] is what may vary. The doubt is that…
-
1
votes1
answer374
viewsDoubt to enter record with foreign key. ENTITY FRAMEWORK
I’m a beginner (starting bemmmm) in programming, and I have a case to develop, which would be a Crud, using Asp.net (C#) and Entity Framework. I created a simple contact registration form, where…
-
1
votes0
answers804
viewsConversion failed when Converting the varchar value '@userid' to data type int
The error is what is in the title, converting char to int. " Conversion failed when Converting the varchar value '@userid' to data type int." I appreciate any help and if you have any good practice…
-
1
votes1
answer2568
viewsString size exceeds the value set in the maxJsonLength property
I’m trying to generate a file Json from a SELECT of the SQL SERVER 2016 table. There are about 4713 rows, this is exceeds the value set in the property maxJsonLength. I can exceed that set value?…
-
1
votes1
answer436
viewsValidate fields with Onclientclick
I’m trying to call a function Javascript through the OnClientClick. The problem is that when running in the browser it does not validate the fields, it is as if the function was simply not called.…
-
1
votes1
answer165
viewsreceive date from the datapicker as a Date
I put in my site in Asp.net the datepicker of this website and I want to receive the value as Date instead of String , so that it does not give problems with the date type of other countries. /*…
-
1
votes1
answer1058
viewsHow to increase the width of table columns and adjust the width of the Javascript modal window
I need to adjust two things in a Modal Bootstap/javascript window: 1 - The width and height of the modal window; 2 - Table column names are breaking to a new row and deforming the appearance. I need…
-
1
votes2
answers257
viewsAdd gridview dynamic checkbox
I am adding the gridview fields via code, but the checkbox does not appear, instead the check box appears: "System.Web.UI.WebControls.CheckBox" Go on like I’m doing: CheckBox check = new CheckBox();…
-
1
votes1
answer36
viewsJquery Selector in a User Control, within a gridview
Good afternoon, I have the following code: <asp:GridView runat="server" Style="border: 0px !important;" ID="gdvDadosHistoricoMedico" OnRowDataBound="gdvDadosHistoricoMedico_RowDataBound"…
-
1
votes1
answer174
viewsASP.NET Entityfraord - Grid with Pagination
I am building an Asp.net application using Entity framwork. To load the grid I use the following instructions: var lista = entity.Usuario.ToList().OrderBy(x=>x.nome); grid.DataSource = lista;…
-
1
votes0
answers33
viewsHow do I access the Ids that are inside a Gridview?
Example: I want to take the amount that was typed into this TextBox and as soon as I trigger the button event bthResposta I can recover the same to be able to set the class properties./ Obs. To…
-
1
votes1
answer40
viewsError debugging webservice (asmx) locally in Visual Studio
I’m trying to locally debug a webservice (asmx) from Visual Studio. When trying to create the connection to the database, the following exception occurs: Failure to request type permission…
-
1
votes2
answers154
viewsC# MVC 5 - Run query with another query result
Folks I’m coming from PHP and learning C# MVC while I migrate the applications I have. I came across the following problem that I can’t find a solution to: This is my class that generates the menu…
-
1
votes0
answers22
viewsAjax Control Toolkits does not run on the Azure Web App
I have an app WebForms .aspx with Ajax component controls Ajax Control Toolkits, that runs perfectly on the local machine! But when I publish on the Azure Web App server, the controls don’t work…
-
1
votes0
answers32
viewsLine sorting error in log
I have some difficulty showing the log to the user. Show the lines in an orderly way, but when showing it appears as follows: Line 5 Line 15 Line 11 Line 45 Line 35 Line 103 I would like it to be in…
-
1
votes0
answers99
viewsVb . net button action does not work
I want to do a simple action when a button is clicked but nothing happens. Aspx file <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderNormal" runat="server"> <asp:Button…
-
1
votes1
answer664
viewsGet return from url c#
I need to get a return from an ajax that I send. The URL returns something like:…
-
1
votes1
answer724
viewsConvert Time 24 hours to 00 hours
I have an int account, I need to return it for hours, and it is working perfectly, the error occurs when the time appears 24, and it should appear 00:00. Go on like I’m doing: string horaStg;…
-
1
votes2
answers380
viewsAsp.net core 2.0 authentication with cookies
I am making an authentication using cookies following the examples Custom Authentication in ASP.Net-Core Creating a simple login in ASP.NET Core 2 using Authentication and Authorization (NOT…
-
1
votes1
answer62
viewsLinkbutton with Eval Listview Asp.net
I want to do this <%# Eval("campo1").ToString() == "nada consta" ? "nada consta" : Eval("campo1")%> within the linkButton <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl=…
-
1
votes1
answer244
viewsAjax POST does not execute the ASP.NET MVC action
Controller Action public class EstabelecimentoController : ControllerBase { [HttpPost] public ActionResult ImportarEstabelecimentos() { var file = Request.Files["inputFileImportarEstabelecimentos"];…
-
1
votes1
answer616
viewsASP.NET MVC error circular reference when serializing object
Good afternoon dear comrades! I am a beginner in ASP.NET MVC and in C#, I am developing a project and I found a problem. Basically, it’s a store registration system. I have two tables, one called…
-
1
votes0
answers28
viewsPaging with checkboxes on the grid loaded with Linq
On my page there is a grid with pagination. It has fields to be checked that cannot be lost when there is paging, however my grid is being loaded by Linq. I tried to do it this way but it didn’t…
-
1
votes2
answers661
viewsBack to previous page - mvc page Razor
I’m trying to get back to the previous page this way: string urlAnterior = Request.Headers["Referer"].ToString(); if (urlAnterior.Contains("Pagina")) return RedirectToAction(""); else return…
-
1
votes0
answers27
viewsDoubt to create Tableadapter with SQL command not supported
I am creating a report in Reportviewer but the SQL command I need to use for Query is not supported by the Tableadapter PIVOT Command. Command Used SELECT Descricao , Codigo , [012017] AS JANEIRO ,…
-
1
votes1
answer177
viewsAsp Net Core MVC - Create Form with Multiple
It’s the first time I’ve asked a question, and I’m getting used to the page, so forgive me if I miss some rule. I’m new to Asp Net Core MVC and I’m picking up a lot to understand some things. The…
-
1
votes0
answers438
viewsHow to change the angular version within an Asp.net core project
I have an Asp.Net Core 2.0 project. Well, I now need to build some screens to make one CRUD using Angular. One should use the Angular 6, here at the company. Well, when I added in this Solution the…
-
1
votes1
answer198
viewsRedirect Actionresult
Good for everyone. I am trying to redirect from one Actionresult to another and I have tried everything unsuccessfully. At this moment I find myself with the following code: [AllowAnonymous] public…
-
1
votes0
answers37
viewsHow to take "x_" from Html tags in outlook with ASPNET
I am having the following problem when sending an email with my application, at the time of opening the email, the Outlook provider modifies the template tags by putting the "x_" at the beginning of…
-
1
votes1
answer849
viewsPrevent duplicate registration with C#
I’m having a hard time with the duplicity record. How do I so that after the user fills in the form, at the time of saving, the data is compared to what is in the database, if he has any repeated…