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
answer67
viewsClient Identity x Azure AD x ADFS integration
I have a database authentication application using OWIN and Identity. A client requested single Sign on with ADFS on premisse. I did it directly through OWIN, but the client requests a federation…
-
-1
votes1
answer1203
viewsDoubt about window.location.href()
I know that window.open() will be open to url in a new window and that the window.location.href() will open on the calling page. It happens that when I use the window.location.href(), I put in…
-
-1
votes1
answer263
viewsHow to do a Vb.net routine, function that runs at a set time?
Hello need help with Vb.net in an Asp.net application, I need to create a function that runs after 24 hours for closing operations, but I have no idea how to create a function that starts alone in a…
-
-1
votes1
answer24
viewsASP.NET - Choosing multiple records from a dropdown
I am developing a web application in ASP.NET MVC where I intend to have a page that allows the user to select one or more exams to sign up from a dropdown and present the chosen exams in a table. At…
-
-1
votes1
answer1380
viewsError No service for type 'Microsoft.AspNetCore.Http.Ihttpcontextaccessor' has been Registered
To help those who are going through the same problem (ANSWER BELOW). Scenario: I am developing an ASP.NET CORE MVC application where I am working with Httpcontextaccessor and the error occurs below.…
-
-1
votes1
answer36
viewsInstance error
I’m getting the following error: Referência de objeto não definida para uma instância de um objeto. The line generating the error is as follows: var _TceView =…
-
-1
votes1
answer143
viewsSpecify custom View paths in ASP NET Core 2.0 MVC 5?
I’m having a big problem specifying the path I want the controller to search for the view relating to it. I’m using more than one subfolder within an area: I want the controller to be able to…
-
-1
votes1
answer328
viewsIf I declare a global variable for my page, is it accessible only in this session?
Hello, I have a question. If I declare global variables for page, they are unique to this session or they can be changed in other sessions? I had problems in other systems that I developed with the…
-
-1
votes1
answer39
viewsHow to share menu between ASP.net core applications
How to share menu between applications? We have several applications and all have the same menu, example: Home | Beneficiary | Accredited When new item appears we need to replicate in all…
-
-1
votes1
answer138
viewsInsert a Partial View @Html.Partial into an iframe
I need to insert a Partial View of Asp.net mvc into a iframe but View is not opening. Can someone give me some hint? I tried the code below, but it didn’t work: iframe src="@Html.Partial("_AGD")"…
asp.netasked 5 years, 2 months ago Paulo Freitas 3 -
-1
votes1
answer42
viewsConfirmation notice
I am in a project in ASP.NET and I entered a situation where you need a warning for a button. This button deleted the file, but without any kind of confirmation and in case of unintentional clicking…
asp.netasked 4 years, 9 months ago PedroBelino 176 -
-1
votes1
answer35
viewsI can’t access controller
Good afternoon, I am having a great difficulty to access an api, via jquery the same always returns error 400 and sometimes 415 follows example: -- Jquery-- -- api controller -- ---Class-- Thank…
-
-1
votes1
answer10
viewsHow to return a compound field in a dropdown by ASP CORE using Razor
original in the model = ViewData["JobId"] = new SelectList(_context.Job, "JobId", "JobDay"); Together with Jobday, put the field Job.Entity.Entityname, Job and Entity are related and in context.…
-
-1
votes1
answer54
viewsHTML5 datepicker onchange event
Can anyone tell me how to use datepicker onchange event to do a check on selected date? in my cshtml is like this: @Html.EditorFor(model => model.Dat_emissao, "{0:dd/MM/yyyy}", new {…
-
-1
votes1
answer24
viewsDo dates search using MVC5
Good afternoon, guys, okay? I hope so. I’m having doubts about ordering the database data in ascending order of dates. var result = from r in context.name Where r.numero == 2 orderby r.datacadastro…
-
-1
votes1
answer122
viewsHow to make an error handling for search not found in ASP.NET API?
The return outside the Try-catch block returns me an empty array, but what should I put there to return some error message in the API request status? Removing Ienumerable and switching to an…
-
-1
votes0
answers8
viewsViewbag always comes up empty, does anyone know why ? Asp . net C#
[![View I need to return the url that was at the time of editing a record , he always ends up going back to the index , because the returnurl only comes null…
-
-1
votes1
answer23
viewsIs there any way to decrease or streamline this VIEW ? MSSQL, own software using ASP.NET
AS WITH Grupos AS(SELECT contato.IDContato, contato_Grupos.IDGrupo, contato_Grupos.IDContato AS IDContexto FROM contato, contato_Grupos WHERE (contato_Grupos.IDGrupo =…
-
-1
votes2
answers386
viewsGet Boolean Value Gridview Column
I have a GridView filling correctly, but I need to take the value of column 5, which is of type BIT in the database (SQL Server). In every way I try, informs error, I tried to pass to a variable of…
-
-1
votes2
answers218
viewsASP.NET My Javascript is not working
Hello, I’m using Javascript to create a numbering in a Textarea when the Enter key is pressed, an example : 1. Olá 2. Isto é isto 3. Fim This Javascript, however, is not working and I do not know…
-
-1
votes2
answers76
viewsHow can I create a list
I need to create a list, where it will list all existing items within an order. In the method below I can bring an item, but I can’t bring it if I have more than one. My doubt would be, I have to…
-
-1
votes1
answer56
viewsGridpanel Checkboxselectionmodel - Sum selection (ext.net)
How can I add a particular column q this selected, via java-script? I am using ext.net. <script> var sumCheck= function () { var resultSum; /* todo loop selectedrows resultSum +=…
-
-1
votes1
answer427
viewsDecimal type field Entity Framework ASP.NET MVC
I have a table called Pecas where only has name and value, but when I click create new piece is not saving in the database, appears the msg that was added but is not entering, in debug shows the…
-
-1
votes1
answer68
viewsStrange error on Xlworkbook line
Personal I appeared this message in my code that I am posting in the image, someone can help me in search of a solution; Follows the code: protected void importar_Click(object sender, EventArgs e) {…
-
-1
votes1
answer347
viewsHow to pass a interpreted parameter on the server to a javascript function?
I’m creating a control ascx that will have multiple impressions on the same page. In this control, there is an image that I intend to perform a function javascript when clicked. By example, like…
-
-1
votes1
answer29
viewsLINQ query for object with a sub-list
I have the following structure: public class Insumo{ public int Insumo_id { get; set; } public List<InsumoDados> Dados{ get; set; } } public class InsumoDados{ public int Desc { get; set; }…
-
-1
votes2
answers91
viewsSystem.Nullreferenceexception sending Form Asp.Net MVC
I have an edit controller, which receives a value from the bank and plays for view, and then I want with this view to play the values on the screen (basic test)... However, even with my controller…
-
-1
votes3
answers121
viewsDataannotations problem in string fields[]
I need help validating a field string[], because whenever I send this empty field, it returns error, even if it is in the correct format: This is the field:…
-
-1
votes1
answer65
viewsReplace text from a textbox when the user input the same textbox
I have a textbox where, through another page I pass you an e-mail. txtemail.text = "[email protected]" And when my page makes the load, in that textbox appears: [email protected]. Only if I try to make a…
-
-1
votes1
answer76
viewsModel list arrives outdated in controller - Asp.Net mvc
I have a Viewmodel with two object lists. The first of them is has an editable column, where it is possible to change a numerical value. After changing the values of the "Listtypes" in the view, it…
-
-1
votes1
answer31
viewsError calling method in code Behind
using System; using Treinamento.DTO.Global; using Treinamento.BLL; namespace Treinamento.WEB.Tabelas.cidade { public partial class Listar : System.Web.UI.Page { protected void Page_Load(object…
-
-1
votes1
answer207
viewsHow to use scrapy on Asp.net pages
Well folks, my question is this:: I have to download the excel file of the product that contains the description "Maíz", Product type "Los Démas. En grano." and marketing "In bulk with 15 %…
-
-1
votes1
answer133
viewsImage (BITMAP) for String
I have never worked with anything like this and would like to insert an image into a database and for what I saw the best way is to transform an image into a string, I have searched and found some…
-
-1
votes1
answer2015
viewsTransaction failed. The server response was: 5.7.1 <email>: Relay access denied
I have this code for sending emails and is returning the following error: Transaction failed. Server response was: 5.7.1 : Relay access denied Would anyone know tell me the problem? I’ve checked…
-
-1
votes1
answer192
viewsdate in javascript wrong format for controller c# (Asp net mvc)
I’m in a strange situation. I am working with datepicker jquery, asp net mvc 5. i configured the datepicker for the format as below: $(".datepicker").datepicker({ autoclose: true, buttonImageOnly:…
-
-1
votes1
answer89
viewsHow to give the post via ajax
I’m having trouble sending an email through a website. The structure that is is as follows: User fills the information in the form and I have a javascript that will give a post via ajax this ajax…
-
-1
votes1
answer17
viewsReferenceerror: Getcamposdinamicogrid is not defined
I need a help, I can not solve a stop, when I load a web screen, I have an add button that create 3 html fields and so will add one at the bottom of the other, but it’s giving way, because I have my…
-
-1
votes1
answer61
viewsReceive boolean value via Avascript in a popup to be used on another page
I have a page that opens a confirmation popup, the popup is called with the window.showModalDialog, I need to take true or false of this popup, to work on page 1 where the returned value will be…
-
-1
votes1
answer213
viewsPass values via Ajax to ASP.NET MVC Controller
I want to pass values via ajax of a text field on my screen for my action, I am doing as follows: $('#Regra').change(function () { if ($(this).val().trim != '') { var regra = $('#Regra').val(); var…
-
-1
votes2
answers87
viewsCentralize login and password fields
So, I’m making a login system with Bootstrap (learning) and I ended up not being able to leave the Login and Password fields centralized, I managed before but entering a left: 40%, but it ends up…
-
-1
votes1
answer67
viewsProblem when correctly rendering a select HTML
I have the following tag select: <select asp-for="@Model.EstadosServicos" asp-items="Html.GetEnumSelectList<EstadoServico>()" id="tipo" class="form-control"></select> that creates…
-
-1
votes1
answer197
viewsReload table without updating whole page? Mvc Applications
I have an application that insert some information through an Ajax call, so far all right, the data enter normally however, I can only view the changes after I do a refresh on the page, I wanted…
-
-1
votes1
answer138
viewsSave information list in txt MVC
Good afternoon guys, as I am new in mvc would like a help if possible from you, I am trying to get some data from my list add the same in a txt file and save on my machine, what this agreeing is…
-
-1
votes1
answer22
viewsDropdownlist Scading - Does not load the second dropdownlist
good night!!! I’m a total newbie on this Asp.net and I’d like some help from you guys. I got an example on the Internet of a waterfall dropdownlist. However, when I implemented it in my application…
-
-1
votes1
answer89
viewsCreate an expired date alert on a Gridview in ASP.NET in C#
I am doing a final project, where a record of task, description and date is made. But I am unable to put a warning/alert/message on the screen to warn the user that a task is expiring. I am…
-
-1
votes1
answer106
viewsHow to duplicate or clone a DIV in Java Script and read all elements in ASP.NET C#
Hello, I have a guest form that I need to automatically increase the fields according to the completion. The code is: <div class="form-row" id="Guests"> <p><strong>Guests…
-
-1
votes1
answer27
viewsHow to do one authentication for two different applications on MVC5?
Hey there, guys. I have two ASP.NET MVC5 applications on the same server on the same site. I’m trying to make one authentication valid for both projects. I have already set a cookie name for both…
asp.net-mvc asp.net asp.net-mvc-5 asp.net-identity identityasked 4 years, 2 months ago Gustavo Borges 19 -
-1
votes1
answer17
viewsHTML validation der Jquery mask
Guys I have an ASP.NET MVC screen using Razor, which in Edit return data that has already been saved for editing. In one of my fields is of type (decimal) use to save monetary value. This field when…
-
-1
votes1
answer22
viewsHelp with Daysofweek method in Asp . net
I am one creating an api using Asp.Net that performs task listings and these tasks are displayed per day, week, month and year, my doubt is on how to perform this call only for the current week that…
-
-1
votes1
answer166
viewsProblem raising API and making request via Postman
I’m creating an API project in dotnet core and I’m not being able to perform requests via postaman on it. Urls of attempts: "http://localhost:5050 e http://0.0.0.0:5050" "https://localhost:5001 e…