Microsoft SQL Server T-SQL date and datetime formats
[crayon-673365fc9a57b940901570/]
Read moreIn ASP.NET MVC, getting your routes setup properly can be tricky if you have a lot of routes. Whenever something is tricky, and might be touched often, having a set of unit tests around it can very helpful to ensure you aren't breaking it when you make changes. Lots of
Read moreOpen your IIS Manager from Administrative tool -> Internet Information Services Manager. In Connection pane on left side of window, click on the website. Double click on Machine Key icon as shown below. You will see Machine key page, default encryption method is SHA1, you can change it from dropdown list as shown. Click
Read moreEXEC sp_databasesEXEC sp_helpdb ----SQL 2000 Method still works in SQL Server 2005SELECT nameFROM sys.databasesSELECT nameFROM sys.sysdatabases ----SQL SERVER Un-Documented ProcedureEXEC sp_msForEachDB 'PRINT ''?'''
Read moreFacebook To create the link, use the following formula: http://www.facebook.com/sharer.php?u=URL can be created with the following html code [crayon-673365fc9af6f249805539/] Twitter To create the link, use the following formula: http://twitter.com/share?text=TEXT&url=URL [crayon-673365fc9af73716386391/] Google plus To create the link, use the following formula: https://plus.google.com/share?url=URL [crayon-673365fc9af76740278607/]
Read moreGetting the Display Name Attribute Value From a Property [crayon-673365fc9b182178676574/] MetadataType Display Names With generated ORM models Microsoft added another layer of indirectly by creating the metadata class attribute. [crayon-673365fc9b186517170638/] In order to grab the meta data display name, you have to traverse the MetadataType attribute: [crayon-673365fc9b189735999900/] Display Name Utility ClassFor completeness, here is my display name
Read moreThis post demonstrates how we can handle gracefully the HTTP request validation which exists in ASP.NET, when using ASP.NET MVC. Request validation is a feature in ASP.NET that examines an HTTP request and determines whether it contains potentially dangerous content. For example, if a user tries to input some malicious
Read moreHandleError Attribute [crayon-673365fc9b7d0796871739/] HandleError Attribute at Action Method Level [crayon-673365fc9b7d5102250010/] HandleError Attribute at Controller Level [crayon-673365fc9b7d8545766342/] HandleError Attribute at Global Level [crayon-673365fc9b7da984102341/] Extending HandleError Filter for logging and handling more errors [crayon-673365fc9b7dd221876153/]
Read moreThe only thing that needs to change to run this script are the database where you want this to run and the values for these two parameters: @stringToFind @stringToReplace [crayon-673365fc9b95a073380175/]
Read moreHere’s a simple example:A) Copy to clipboard your JSON object.[crayon-673365fc9ba98783085637/] B) In VS2012, open edit menu, choose ‘Past Special’ and click on ‘Past JSON As Classes’.The result:[crayon-673365fc9ba9c257409596/] Of course it also supports more complex objects like Multi-Dimensional Arrays etc.
Read more