Παρουσίαση με Ετικέτες

HowTo: Reset browser cache of CSS files upon ASP.net MVC app publish
18 Οκτωβρίου 19 01:45 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
On an ASP.net MVC webapp I’m maintaining, I had the issue that due to caching of older CSS (stylesheet) files in the browser, if the user didn’t press F5/refresh, it wasn’t showing you some message (since I had added the class .center-horiz-vert in the CSS that didn’t exist in the older cached css the browser […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
HowTo: Use latest C# features in MVC5 Razor views (.cshtml)
16 Απριλίου 19 03:53 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Having recently updated an ASP.net MVC web app from MVC4 to MVC5 and from .NET 4.5 to .NET 4.7.2 I was expecting Razor views (.cshtml files) to use the latest C# compiler, especially since at Properties/Build/Advanced option for the web project one read “C# latest major version (default)”. However that was not the case and […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: change color of validation messages in ASP.net MVC
02 Νοεμβρίου 18 02:35 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
If you need to customize the colors (or do more restyling) of validation messages in ASP.net MVC, the following snippet from a discussion on ASP.net forums should be useful: Add to Content/Site.css: /* styles for validation helpers */ .field-validation-error {     color: #b94a48; } .field-validation-valid {     display: none; } input.input-validation-error {     border: 1px […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: include MVC model property Display name in Required validation message
04 Οκτωβρίου 18 01:04 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Just came across this validation error display in an MVC app I’ve recently started maintaining. The required input field validation seemed to not be localized, resulting in a mixed English and Greek (from the field’s Display name) message: Looking at the MVC model I noticed they were using [Required] attributes for the userName and password […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Use WordPress Permalinks on IIS
29 Οκτωβρίου 14 10:28 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
at http://zachis.it/blog/7-dangers-of-using-windows-server-on-a-wordpress-installation/ the thing that guy says about Permalinks isn’t accurate at all (not that the other things that he says are any accurate that is). WordPress Codex have documentation on how to configure URL rewriting in web.config that is necessery for Permalinks to work in IIS. e.g. at http://ClipFlair.net, if you press the "about" […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: Bind ASP.net control to list of files or folders
15 Ιουλίου 13 03:33 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At from ClipFlair Gallery metadata input pages for Activities and Clips I had to bind an ASP.net control to a list of files and folders respectively and although I found a Folder Contents DataSource control, it didn’t cover my needs (like filtering of a folder contents). I just contributed my solution using .NET Anonymous Types and […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
HowTo: Perform ASP.net action after page child controls are databound
11 Ιουλίου 13 11:57 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
While creating metadata entry/update pages for ClipFlair’s Activity and Clip Galleries I had the problem of figuring out how to do some initialization (from XML data, loaded from a filename based on the 1st item of a DataBound control), after all child controls of the ASP.net Page have been databound (from XmlDataSource). Seems others have […]
Δημοσίευση στην κατηγορία: , , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές