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
-
51
votes8
answers2113
viewsIs using customer validation enough?
Using Javascript validations is sufficient for efficient validation? Example: Date validation. It is necessary to check also in the code? What are the disadvantages of only performing validations…
-
51
votes2
answers1072
viewsIs it possible to process data receipt in Camel Casing using Odata?
In the method Register class WebApiConfig i have configured a CamelCasePropertyNamesContractResolver public static void Register(HttpConfiguration config) { //Resto do código removido para brevidade…
-
35
votes8
answers45010
viewsWhat is the difference between C# and ASP.NET?
What’s the big difference about ASP.Net and C#? I program in C# for desktop, but I can’t understand. C# para desktop (Windows Forms Application) is identical to the C# used in web programming? And…
-
29
votes5
answers69449
viewsHow to make a regular expression for mobile phone?
How to create a regular expression to validate the phone field you accept 99-99999999 (DDD + 8 numbers) or 99-999999999 (DDD + 9 numbers). And that when typing it add the dash - automatically!…
-
23
votes4
answers23311
viewsForce Javascript File Update Without Disabling Cache
In a large-scale web application I develop there is a disorder every time updates happen, because browsers, especially Google Chrome, do cache of Javascript files and, sometimes, incompatibilities…
-
21
votes2
answers1634
viewsWhat is ASP.NET vNext? What is the correct name?
Okay, I know that ASP.NET vNext is the new version of ASP.NET being released by Microsoft in 2015 and that brings big changes changing the way of working various things. This vNext name was used as…
asp.net-mvc asp.net asp.net-web-api asp.net-core nomenclatureasked 9 years, 8 months ago Maniero 444,682 -
16
votes4
answers8320
viewsWhat is the difference between client-side and server-side code in web development?
I’m studying ASP.NET through a book called Professional: ASP.NET 4.5 in C# and VB and at various times the author talks about code client-side and server-side, would like to know the difference.…
-
15
votes4
answers957
viewsMultiple Contexts Migrations Entity Framework
I have several projects and each project has a context. I would like to know, how to use the Migrations to update and generate only one database of these various contexts?
-
14
votes1
answer485
viewsHow to do Signalr load test?
When testing with the library SignalR to create applications in real time in . NET, generated some doubts about scalability which could not be found on the internet. After a few tests using the…
-
14
votes3
answers12403
viewsGet MAC Address from application client machine
I would like to know the best way to get the MAC Address from the client of my Asp.Net Web Forms application. As it is a low level information, I believe it is not as simple as it seems.
-
14
votes1
answer41651
viewsFormat value with Brazilian currency mask
I have a stored trial that returns a credit amount for a certain consortium quota. The return of that value would be like this: 167900. But it should be so: R$ 167.900,00. This value I feed a…
-
14
votes1
answer11725
viewsCLSID component COM class factory recovery failure
I have developed an application on my pc that does the following: from an upload of a word document, it generates a new document with some basic information. To generate this information, it opens…
-
13
votes3
answers6240
viewsWhat would be the best way to make a CRUD for a framework in the most generic way possible?
I’m studying to make a CRUD for a framework but I’m trying some problems to be able to do it in the most generic way possible. For example: have a class Pessoa() I want to do CRUD by passing only…
-
13
votes2
answers2568
viewsOWIN and Katana - How does it really work and how to use it?
In recent times I have tried to understand better about OWIN in the aspects of why to use it, how it works and how to use it. About why to use I have asked here and already convinced myself that the…
-
12
votes2
answers949
views -
11
votes2
answers483
viewsASP.NET Identity and Windows Identity Foundation (WIF)?
Once again talking about ASP.NET Identity. There is another theme within this same subject that I believe is of great importance to the community (mainly to me, the main interested). This is the…
-
11
votes2
answers1625
viewsLambda Groupby by year and month
I have a list of events, and I’d like to group them by year and month, for example [Year 2017] Month January { Event 1, Event 2, Event 2 } Month February { Event 3 } [Year 2018] Month January {…
-
10
votes1
answer1708
viewsASP.NET Identity and Claims
Still on ASP.NET Identity, following another question I asked about this (Example of ASP.NET Identity using SQL Server), an interesting topic within the same subject would be regarding Claims. What…
-
10
votes2
answers151
viewsRelationship between Middleware and Application Delegate
I’m studying the OWIN and its implementation Katana by Microsoft. I’ve asked about it here and the answers already help to have a good overview of the subject. Going deeper I found this doubt. In…
-
10
votes1
answer2093
viewsOWIN and Oauth What are they and how to use them?
I am seeing Webapi tutorials with authentication/ authorization and I came across these two concepts, although explained in the tutorials the settings are not clear. Even searching the web, the…
-
10
votes1
answer834
viewsHow is the life cycle of an ASP.NET 5 application?
This is a question that I have always had (including in previous versions of ASP.NET), but I will ask here in the context of ASP.NET 5. The question is this: when building an application with…
-
10
votes0
answers987
viewsOauth 2 authentication server in ASP.NET Web API
The company I work with develops internal applications, but for policy reasons, we will have a subdomain to handle authentications such as: login.dominio.com.br where you will have an app…
-
10
votes1
answer130
viewsFunctionality of ":" in C#
Recently I was developing a C# application with Visual Studio and I came across a somewhat unusual situation: public void Upload(object model) { FOO: var text = "teste"; } In the code, FOO: does not…
-
9
votes2
answers747
viewsWebmethod is not called (fired) through the Pagemethod
I’m having trouble firing one WebMethod in a project created in Visual Studio 2013 (Webforms Application). If I create a project, for example, in Visual Studio 2008 and migrate to Visual Studio…
asp.net visual-studio-2013 webforms webmethods pagemethodsasked 10 years, 9 months ago Leonan Milani 141 -
9
votes2
answers1921
viewsAsync operations on ASP.NET
When it is advantageous to use asynchronous operations in an application ASP.NET (classic, MVC, MVC Web API)? When do I use the ThreadPool to perform some operations may be useful?…
-
9
votes2
answers326
viewsIs the term ASP.NET MVC correct?
Is it correct to use the term ASP.NET MVC? It seems that they are two different things, like, in MVC we no longer use components of ASP.NET, we use either HTML or Razor or both? I know that besides…
-
9
votes3
answers31270
viewsFormat mask for CNPJ
I need to format a mask for CNPJ. Until then this is done, but the standard of the company is to format with space instead of stitch. This is the code I’m using. valorDoTextBox =…
-
9
votes1
answer262
viewsHow could I improve the code of this paging control?
I set up a pagination control for a blog I’m building, but I’m not sure I did it the right way, I tried to copy the pagination control of the Stack Exchange sites. Could you look around and tell me…
-
9
votes3
answers189
viewsSQL - Restrict query data
Good morning, I have an app in WebForms than from two DropDownList obtain data from a database in MS SQL Server 2012. At first DropDownList it will present the name of several companies in the…
-
9
votes2
answers955
viewsHow to manage approval and production environments with Team Services?
I’m on an ASP.Net C# project that’s starting now, but I come from ASP Clássico, where things are very different. In this new project we need to create and manage approval and production…
-
8
votes3
answers424
viewsServer.Mappath fails within Global.asax
In the code below, when I try to call the Mappath function inside Global.asax, an error occurs at runtime with the following error message: System.Web.Httpexception (0 80004005): Request is not…
-
8
votes1
answer3496
views -
8
votes1
answer374
viewsWhat is ADO.NET for C#?
I’m starting to learn about C# for web applications, and I wanted to know what ADO.NET is and what are the advantages of using it?
-
8
votes2
answers2250
viewsASP.NET needs a Windows server?
As usual for PHP I have always installed Debian and Apache, but I want to go deeper into web development and I intend to take a look at ASP.NET, out of curiosity I came to doubt if I will need a…
-
8
votes3
answers466
viewsBest practice to check if the module is being used
My question which perhaps - I hope not - can be considered as of opinion, is conceptual and even simple. In most applications, we work with features that when used by multiple users at the same time…
-
8
votes2
answers1730
viewsTime-out expiring faster than expected - ASP.NET
I am with an application that is working ok, however, when I spend a little time without interacting with the page the user authentication drops and the system returns to the login screen. i am…
-
8
votes1
answer2473
viewsIs it possible to create a site with HTML and C# without ASP.NET?
Is it possible to create a site only with HTML and C#, without ASP.NET? In general, as?
-
8
votes1
answer67
viewsWhat is the difference between Class and Code File on Asp.net Core?
What is the difference between Class and Code File in Asp.net Core? There are two types of files in Asp.net core, there is some difference between one and the other? And when we should use each?…
-
7
votes2
answers461
viewsWriting conventions for ASP.NET controls
When you drag a control from Toolbox to a Web Form Visual Studio automatically adds an ID to this control consisting of its type with uppercase first letter and a number. This is the same pattern…
-
7
votes2
answers340
viewsASP.NET pages continue to run after page changes?
The method Response.Redirect has a parameter in one of its overloads called endResponse that when true indicates that the current page must be completed after redirecting. Does this mean that when I…
-
7
votes1
answer462
viewsUsing Cookies or Databases?
I need to create a cart where you store more than one data Example: ID_PRODUTO, ID_VENDEDOR I would like to use Cookies pro system get lighter, but I found a big problem, the Cookie stores the data…
-
7
votes1
answer575
viewsDisplay Facebook images with a certain hashtag via API
I am developing a web application, and my client asked me about appearing in his application, in some area of the site, images of Facebook, with the desired hashtag. Example, it will cover a certain…
-
7
votes5
answers9265
viewsSearch judicial process data on the TJSP website
I am developing an ASP.NET application with C# that will need to consult the proceedings of online lawsuits. So far the only way I could find to get this information was to do the direct…
-
7
votes1
answer2836
viewsDifferences about WCF, Webservice and Webapi with Asp.net?
I will create a service to make my company’s data available to a client. But I am evaluating the creation of the services and I came across this technical doubt. I know there are differences between…
-
7
votes2
answers4326
viewsProxy connection: HTTP 407 Proxy authentication Required
I created a project for ASP NET where I want to get the data of an address from the zip code by calling the url on a webservice. On my machine works normally, but on the machine I work, there is a…
-
7
votes1
answer1432
viewsHow to get a List<string> C# and send to a JS variable?
I am developing in an Asp.net C# project and I don’t know how to get on the page a list of strings of my class. How do I get these values? Code I’ve been using. var pontos=…
-
7
votes1
answer3980
viewsIn which cases return the System Exception error.Outofmemoryexception
Which are the most frequent cases that can return this Exception?
-
7
votes3
answers633
viewsAdd class to a datatable
I’m making changes in a pagina.aspx of a system, however many things are generated through language functions. Since I can’t add a class via code, I’m trying to add via jQuery, but I’m not getting…
-
7
votes2
answers853
viewsHow to get Text from a Listview?
How can I catch the Text of my Label that is inside a ListView without using the FindControl (Item.FindControl("lblCodigoEdit") as Label).Text), or is access directly the value it has in mine…
-
7
votes1
answer1103
viewsAsp.Net MVC authentication using Formsauthentication
I am implementing authentication in my ASP.NET MVC application. I am using FormsAuthentication for this authentication of each user and for each logged in user 5 Sessions are assigned (Name,…