Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

RaynaldM/asp.net-mvc-helpers

Repository files navigation

asp.net-mvc-helpers

A simple and short collections helpers for asp.net MVC 5

Available on Nuget (https://www.nuget.org/packages/asp.net-mvc-helpers/)

HtmlExtensions

BootstrapRadioButtons

Create a radio button MVC compatible and BootStrap compatible

BootStrapCheckBoxFor

Create a checkbox in BootStrap Standard (http://getbootstrap.com/css/#forms-controls)

BootstrapValidationSummary

Decorate the classic validation summary with bootstrap alert

EmailFor

set the mail type on an input (HTML5)

TypeScript

load the right JS generated by a typescript file or a list of TS files (.min if not debug)

JavaScript

Load a JS file (or some JS files), create a Bundle and set the script tag to load it

JQuery

Add Jquery files in page with CDN if it's release mode. If CDN fail, it switch on local bundle. Local bundle if it's debug mode (usefull for debugging)

JQueryVal

Add Jquery validation files in page with CDN if it's release mode and local bundle if it's debug mode (usefull for debugging)

Css

In full less configuration (or with webessential) VS/Build generate file.css and file.min.css. this method choose the right file depend of mode 'release' or 'debug'

ResourcesJS

Helper to combine with ResourceBuilder Class Give the right bundle Url contructed by Resources Builder

BrowserCulture

Get the culture from browser (client side)

CompressedPartial

Compress a partial view

GravatarImage

Compose a valid Gravatar Url from email (see : https://fr.gravatar.com/site/implement/images/ for more details)

ActionLink With GlyphIcon

Create an Action Link with a Glyph Icon

Attributes

NoCacheAttribute

Used attribute to remove cache page for each call to server Place attribute on controller method

AjaxOnlyAttribute

Used attribute to filter Ajax call from client

OptimizedForCacheAttribute

Attribut used to say to the browser (and server) this action is highly cacheable

ThrottleAttribute

Decorates any MVC route that needs to have client requests limited by time. come from http://stackoverflow.com/questions/33969/best-way-to-implement-request-throttling-in-asp-net-mvc

Helpers

StartOfTheUnixWorld

Give the date of Computer Start Date

FromUnixTimeStamp

Compute a datetime base on ticks + start of time

ToUnixTimestamp

Compute the number of ticks between start of time and datetime (in UTC)

ToUtcJsISO

Convert an UTC DateTime in a correct JSON/JS string datetime (ISO 8601)

ShortGuid

Represents a globally unique identifier (GUID) with a shorter string value than GUID

ResourcesBundleBuilder

Builder use to make bundlesfrom resx embedded files in dll

Slack WebHook Helper

Just for send simple message to slack via Slack Api > RestSharp

About

A simple and short collections usefull for asp.net MVC 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages