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
votes2
answers1487
viewsLog4net.dll file not found
All these dlls are in the bin folder and have been referenced in the project, the project is compiled without errors: <compilation debug="true" targetFramework="4.0"> <assemblies>…
-
0
votes1
answer101
viewsASP.NET - Using a web user control dynamically
Good staff, I have the following code html that repeats over and over again throughout the website: <div class="tab-content"> <div class="tab-pane active" id="basik"> <ul…
-
0
votes1
answer204
viewsInclusion of files in Visual Studio projects
Good evening. I wonder if it is possible to include a file in a Visual Studio project by programming at runtime ?…
-
0
votes1
answer69
viewsHow do I manipulate and submit data through GET and POST?
I have a web application and need to access an external url that has login and password. Later I must fill out a form, submit the data and receive the feedback in my application! This is possible…
-
0
votes0
answers1658
viewsUnable to load file or Assembly 'System.Web.Mvc, Version=5.2.4.0, Culture=neutral
I’m trying to create this project https://msdn.microsoft.com/pt-br/library/dn539646.aspx but after opening the project for the first time and compiling, error occurs: Unable to load file or Assembly…
-
0
votes1
answer924
viewsIdentity implementation in existing project - Not working
I have a project for a virtual store. The store already exists today made in ASP and I’m migrating to .net. I intend to use the authentication control itself . net, but when I started the project, I…
-
0
votes1
answer89
viewsSpace identification in TXT Asp.net file
good evening, I am not able to display line break coming from my TXT file, I have a TXT file with 5 sentences, but when I put to display the default page by a literal loads the txt file but the…
-
0
votes1
answer790
viewsProblem with Maxjsonlength when using ajax
Hello, I am using ajax to build a table in an application, but when the event is triggered, javascript does not build html, giving the following error: "Error during serialization or deserialization…
-
0
votes1
answer63
viewsHow do I make the imag map link a parameter from the database?
I would like that in the imag map area tag in the href attribute instead of placing the page link I want you to receive a parameter that is sent to a c method#. HTML code <img…
-
0
votes1
answer43
views -
0
votes1
answer40
viewsUse of Syntaxtree
I’m studying C# and came across the SyntaxTree while reading about Roslyn. I also read the documentation of Microsoft itself on the link: Introduction to syntax analysis However I still have two…
-
0
votes0
answers30
viewsAsp button inside a modal does not Triggering to click Event
If I click the button, he’ll check the textbox , incorrect formats etc , but if the textbox are all validated it does not call the event associated with it any idea ? the boot is inside a form with…
-
0
votes1
answer78
viewsAsp net Identity
Good evening, it’s a simple question, I don’t even know if this is the right place to ask this (if not and can you tell me where I already thank you) but I want to learn how to use Asp.Net Identity…
-
0
votes1
answer1093
viewsName does not exist in the current context
I’m in the fight here on this project with asp.net, but the classes are right as I took a tutorial here on the net, they don’t give any error only when running the project ai shows. CS0103 error The…
-
0
votes1
answer790
viewsSUM within SUM Entity Framework performance
I made a query with Entity framework and I’m having problems with performance. public static Decimal ValorPrevisto(this ClinicaModel clinica) { return clinica.Contratos.Sum(c =>…
-
0
votes0
answers308
viewsWhat better way to work/store files in Base64 C# + Sqlserver
I am consuming an external API, and in return I have a PDF file in format base64, would like to know how best to work/store this kind of data in the database SqlServer + C#. My question is: 1 - I…
-
0
votes1
answer36
viewsHiddenfield in aspx to cshtml
I have a doubt about hiddenfield in aspx we use the following command: <asp:HiddenField ID="HiddenField1" runat="server" /> And for cshtml it is possible?…
-
0
votes1
answer218
viewsDisplaying Gridview Master Detail so that the details are shown below each master
I use ASP.NET’s Gridview control to display the information of two tables that have a master-detail relation. Table 1: Purchase (Idcompra, Datacompra e Valorcompra) and Table 2: Compraitem…
-
0
votes1
answer53
viewsRedirect from login page to Recover password?
I’m doing an app on ASP . net where I’m logging in with controllers. However on the login page when I click on the hyperlink to do password Recover the control does not leave the login page and I am…
-
0
votes1
answer161
viewsIs it possible to have more than one WEB-API under the same domain?
Good afternoon! I am new in the area of development and I am walking in the area of Web applications. I have developed a web-api that is already hosted and running. However, I am developing another…
-
0
votes0
answers31
views -
0
votes1
answer59
viewsJquery.Validate
Talk personal, all right!? I am breaking my head with the following, I am using the plugin jquery validate, working all right, but in my form I am using a button that I do not want to validate in…
-
0
votes1
answer941
viewsC# List<> - Insert into database
I have an app that takes information from a TextBox, inserts into a list List<> and then shows in a CheckBoxList. Example: List<string> quantidade = new List<string>(); for (int i…
-
0
votes1
answer95
viewsWhat command can I use to delete an item from a Repeater in c# Asp.net
I am trying to delete an item from a Reset, this item is a "registered" person. Because there is no database involved I am aware of Repeater1.Controls.Remove, but this does not exclude. Information…
-
0
votes2
answers482
viewsInsert time and time into database
I want to enter the time and date separately in the database, which have the fields timestamp and data, respectively. I have the following code on the insert button: SqlCommand sqlInsertCabecalho =…
-
0
votes2
answers48
viewsInsert error ... Values using oracle error 00936
I’m trying to make an Insert on a table and it’s always giving me error 00936 that says Missing Expression when you arrive at the command line cmd.executenonquery. Can anyone help me? Code I have:…
-
0
votes0
answers392
viewsPaint googlemaps' streets
I am doing a service that needs to paint some streets of the maps with different colors according to a certain typology. I have already done it for them, as I will demonstrate in the image below.…
-
0
votes1
answer36
viewswork with images in sql server + Asp net
Guys, in my project I need to work with uploading images through the site Asp.net and save them in sql server, and then I need to show them on a page as if it were products, with description and…
-
0
votes0
answers31
viewsC# MVC - Different context
Good morning, I have two Dbcontextprincipal and Dbcontexthist context that have the classes Bill and Contahist, respectively. In the main Dbcontext has the class Client. I would like to do the Join…
-
0
votes0
answers23
viewsHow to keep the data entered in the View when we change page and return to it
I’m trying to make an application where the user on a page has multiple multiple choice questions, he marks the radio and changes page. If he returns to the page again, these options he has marked…
-
0
votes1
answer162
viewsHow to pass properties of another model?
Problem: I have an index that uses a model of the type: @model IEnumerable<projeto.Models.classe1> I need to access some properties of classe 2, my classe1 being Ienumerable, how can I access…
-
0
votes2
answers115
viewsHow do I call two models in one view?
Good morning people, I’m new to Asp so my knowledge is very low, could you help me with this question? I have a query view that already has a "BOOK" model, and in this same view I intend to leave a…
-
0
votes1
answer366
viewsHow to load the latitude and longitude pairs to a C# object and work them?
Good night! I’m developing a web page where the user can plot a route. I use the google maps api. I need to take the latitude and longitude pairs of the route, press for an object c# and, after…
-
0
votes0
answers62
viewsData Format (Dataannotations) does not work - Asp.net Core
I’m having problems with displaying a datetime format. I get the "03/12/1980 12:34:09", but only the input mask appears. How to make the date appear along with the time? Thank you :)…
-
0
votes1
answer167
viewsHow to group records by month and year within a list of objects? ASP NET CORE
I am trying to group the objects of a list by month or year, before returning the same. I am trying this way and I did not succeed. foreach (var item in passList) { pass_obj = new Pass_returnDTO();…
-
0
votes1
answer22
viewsAsp.Net Identity using Procedure
I am in need of your valuable help, I have a web project to do using Asp.net and I would like to use Identity to do the access control, use all existing features to make the safe login. Problem that…
-
0
votes0
answers127
viewsUnable to locate Control ID in Controlparameter - Asp.Net
Hello, I’m having a question getting the id of a book author and adding it to a book creation, and the book to be published should have an auto-incrementing Book ID, a book name and the author ID.…
-
0
votes1
answer56
viewsReturn amount Asp.net MVC
I have a model with category, Deposit, Date, Amount, I need the Amount add all the deposit that exist in the database and returns in the View, I did the following, only it didn’t solve. public async…
-
0
votes1
answer48
viewsError doing a Return in windows form c#
Could someone give me a hand, please, I’d like to know what I’m doing wrong so this giving this error at the time of return. I want to show on Grid these fields: SubCategoriaId, SubCategoriaNome,…
-
0
votes1
answer279
viewsReturn total documents from a Mongodb Collection?
I made a api in C# and it’s the first time I’ve used Mongo as a bank and on a route I need to get the total records I have on my Collection. I tried several ways but could not find a way to return a…
-
0
votes0
answers31
viewshow to remove httpredirect web.config
I’m testing the redirect in development, running the site through visual studio. And to test the redirect I added the following chunk of code to the web.config <configuration>…
-
0
votes1
answer74
viewsdifferentiate between upper and lower case letters
I’m performing database query, but I would like to differentiate the uppercase letters from lowercase, because the way it is if I type test and value that is in the bank for Testing I get nothing in…
-
0
votes0
answers74
viewsFolder Reset does not appear the folders of my code (Visual Studio)
All these folders are inside my visual studio, I’m trying to move to github but at the time I access "Source > Repos" they don’t exist there what I can do to solve?…
-
0
votes0
answers247
viewsUpload - the process cannot access the file because it is being used by another process
I am trying to build a file manager, but I am finding a problem when updating the file. First I do the upload file, and after that, if the user wants to update, I have the option to update, where…
-
0
votes1
answer66
viewssynchronize nosql and relational databases
I have an Asp.net application that uses the CQRS architecture standard and two databases one relational with Entity framework and one with mongodb. The question is at the end of the day, or in parts…
-
0
votes0
answers34
viewsThe option to create an ASP.NET Core web app does not give me the option to create an app with React
Good personal evening I’m having a "problem" in creating a new Web application ASP.NET Core. When I choose the . NET 5.0 option it does not appear that screen that has the option to create an app…
-
0
votes1
answer45
viewsAccess an array’s Indice value
How do I get the value of the array’s input in each interaction, without having to place the Permissionusuariofilter.Userpermissionid[0] dynamical and non-static Dice. I need the class to stay that…
-
0
votes0
answers40
viewsLINQ not recognizing method that returns a Boolean
I’m having this mistake when I try to perform a query with the Entity within a Iqueryable. "LINQ to Entities does not recognize the method 'Boolean Checkpast values(Int32)' method, and this method…
-
0
votes0
answers13
viewsedmx Entity Framework error
Gentlemen, I cannot update a table in the system, which I do maintenance due to the following message : The model was generated with warnings or errors. Please see the Error List for more Details.…
-
0
votes0
answers135
viewsASP.NET and C# - Gridview line obligation
Just as there is in forms of ASP.Net sites the Requiredfieldvalidator, which requires the filling of a field, there is some way to have a mandatory gridview with at least one line? For example, I…