Posts by Anderson Costa • 61 points
4 posts
-
0
votes4
answers1566
viewsA: ASP.NET MVC input number
Create a . js file with the following code snippet. (function ($) { $.validator.methods.range = function (value, element, param) { var globalizedValue = value.replace(",", "."); return…
-
0
votes2
answers1798
viewsA: Show current date in Editorfor Razor
@Html.Label(@DateTime.Now.ToShortDateString(), new { @class = "css-class" })
asp.net-mvcanswered Anderson Costa 61 -
2
votes4
answers5763
viewsA: Capture Real User IP
add the using using System.Net; include the code below string host = Dns.GetHostName(); string ip = Dns.GetHostAddresses(host)[2].ToString();…
-
4
votes3
answers1076
viewsA: Is it correct to prefix variable names with their type?
In older systems variables with this nomenclature are quite common, and even in courses (college, etc.) older teachers teach this way. But don’t use this nomenclature to name variables, table,…