Here goes another set of libraries to help out. Separated into a few assemblies to avoid loading too much stuff in your app.
License: Apache License Version 2.0
- SrkToolkit.Common (.NET 4.0, 4.5) - nuget
- SrkToolkit.Common.Unsafe (.NET 4.0)
- SrkToolkit.Web (for ASP MVC) (.NET 4.0 for MVC 3, .NET 4.5 for MVC4) - nuget mvc4 - nuget mvc5
- SrkToolit.WebForms (.NET 4.0)
- SrkToolit.Xaml (.NET 4.0, Windows Phone 7, Windows Phone 7.1, Silverlight 4)
- SrkToolkit.Mvvm (.NET 4.0, Windows Phone 7, Windows Phone 7.1, Silverlight 4)
- SrkToolkit.Services (.NET 4.0, Windows Phone 7, Windows Phone 7.1, Silverlight 4)
- SrkToolkit.Domain (.NET 4.0, .NET 4.5) - nuget - nuget mvc4 - nuget mvc5
- date manipulations, DataAnnotations
- string manipulations (trim with suffix,
AsNullIfEmpty()
,AddHtmlLineBreaks()
,TrimTextToWord()
,HtmlParagraphizify()
,RemoveDiacritics()
,MakeUrlFriendly()
) NameValueCollection.ToDictionary()
- ObservableCollection:
AddRange(IEnumerable<T>)
,RemoveAll(Func<T, bool>)
- StopwatchExtensions: fluent methods to avoid writing many lines of code when using it
- email address decomposition (account, tags, local part, domain part) and validation
- no fancy stuff like
StringExtension.IsEmpty()
)
And more...
- date and time display helpers (based on timezone, standard formats, tag...)
- PageInfo is the one object to set your page title, description, meta tags, opengraph values...
- fixed
AuthorizeAttribute
to return a "HTTP 403 Forbidden" instead of 401 auth page when already authenticated - 1-line error handling code for customized http-accept-aware error pages
- wrapper for tempmessages to show nice informations, warnings and errors (extension methods for both controllers and view)
DecimalModelBinder
with "friendly" decimal separator detection (useful for stupid cultures like French)- OpenGraph extensions to easily ouput tags in your page
BaseSessionService
class that allows auto-populating new and expired sessions in a lazy wayResultService
class that allows oupting error pages from actionsHtml.DescriptionFor()
to show the Description property from the[DisplayAttribute(Name = "", Description = "<desc here>")]
Html.Submit()
'cauz it's missingUrlHelper.SetQueryString(string url, params string[] keysAndValues)
to add/change query strings from a raw urlJsonNetResult
: ActionResult class that allows you to specify your favorite JSON serializerHttpRequest
:.IsXmlHttpRequest()
,.IsUrlLocalToHost(url)
,IsPost()
...
And more...
All assemblies are signed. The real key is not in source control; I keep it to ensure my builds are only made by myself (yes, I know that not 100% true).
The latest build can be found here: https://www.nuget.org/packages?q=Tags%3A%22srktoolkit%22
Want unsigned assemblies? Get the code, remove the option and build.