Questions tagged as 'asp.net'

8
answers

Is using validation via client sufficient?

Is using validations in JavaScript enough for efficient validation? Example : Validate dates. Is it also necessary to check the code? What are the disadvantages of doing validations via client-side ?
asked by 17.04.2014 / 18:59
2
answers

Is it possible to handle receiving data in camel casing using OData?

In the Register method of the WebApiConfig class I have set a CamelCasePropertyNamesContractResolver public static void Register(HttpConfiguration config) { //Resto do código removido para brevidade co...
asked by 25.05.2016 / 15:37
2
answers

What 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 it brings great changes changing how we work various things. This vNext name was used as the working name. Initially I had the idea that thi...
asked by 26.02.2015 / 14:08
4
answers

Force javascript file update without disabling cache

In a large-scale web application that develops, an upset occurs every time updates occur, because browsers, especially Google Chrome, cache JavaScript files and, sometimes, incompatibilities occur between the server code and the client code, l...
asked by 10.06.2015 / 02:49
5
answers

How to make a regular expression for cell phone?

How to create a regular expression to validate the phone field that accepts 99-99999999 (DDD + 8 numbers) or 99-999999999 (DDD + 9 numbers). And when typing it add the - dash automatically! ValidationExpression="^[0-9]{2}-([0-9]{8}|[0-9]{9})...
asked by 13.01.2015 / 13:23
4
answers

What 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 client-side code and server-side , I would like to know the difference.     
asked by 18.12.2013 / 20:22
4
answers

Multiple contexts Migrations Entity Framework

I have several projects and each project has a context. I would like to know how to use Migrations to update and generate only one database of these various contexts?     
asked by 26.02.2015 / 06:40
3
answers

Get MAC Address from the application's client machine

I would like to know the best way to get the client MAC Address from my Asp.Net Web Forms application. Since it's low-level information, I do not think it's as simple as it sounds.     
asked by 18.02.2014 / 20:16
1
answer

How to do SignalR load test?

When testing with the SignalR library to create real-time applications in .NET, some scalability concerns were generated which could not be found on the internet. After some tests using Crank (load simulator) , I saw that a relativel...
asked by 12.12.2013 / 00:35
1
answer

Format value with Brazilian currency mask

I have a stored procedure that returns me a credit amount for a certain amount of consortium. The return of this value would look like this: 167900 . But it should look like this: R$ 167.900,00 . This value I feed a <...
asked by 23.01.2015 / 12:12