• Code
  • Tags
  • Users
  • Titles
  • Log in
  • Feedback
  • FAQ
Share Code
Welcome to ForkCan.com

ForkCan is all about sharing code in a social way.

Discuss, debate or argue with other devs about their or your own code.

Give other devs feedback or make a Fork (Make a better version of a shared code).

Rate the code, if you use the code mark it as used so others can see if the shared code is used by someone.

Help each other to be better devs and to be more productive.


Features not working yet:

Flag a post

Tagged code 'asp.net' feeds
Latest activity

Tagged Code

Views Used Newest Oldest

1.11k
Views
Get Cookies in Web Api Asp .net Mvc 4 RC
By @johannormen "Code Contributor"  July 04, 2012 1:37 PM

"Code how to retrieve cookies in Web Api Calls"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

webapi

Mark 'webapi' tag as 'like'

Mark 'webapi' tag as 'ignore'

0 0 0 0


702
Views
Fork of GZIP your Actions in MVC if not used as standard in IIS7 or only use IIS6
By Stefan Rusek   July 25, 2011 12:00 PM

"Action FIlter for MVC to GZIP your reults if not turned on as default in IIS7 or if you use IIS6"
actionfilter

Mark 'actionfilter' tag as 'like'

Mark 'actionfilter' tag as 'ignore'

asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 1 0 0


1.1k
Views
ActionFilter to Handle and Log Error for each Controller, ASP.NET MVC
By @fredrikn "I'm the master"  March 21, 2011 3:45 PM

"ActionFilter to handle and log exception in ASP.Net MVC 3.0"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

exception

Mark 'exception' tag as 'like'

Mark 'exception' tag as 'ignore'

logging

Mark 'logging' tag as 'like'

Mark 'logging' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 0 0 0


1.07k
Views
Fork of Serialize an object into a Querystring, using LINQ syntax
By @benlaan   February 17, 2011 6:03 AM

"Can be used to serialize an object to a QueryString."
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

linq

Mark 'linq' tag as 'like'

Mark 'linq' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 1 0 0


1.49k
Views
Serialize an object into a Querystring
By @fredrikn "I'm the master"  February 16, 2011 3:07 PM

"Can be used to serialize an object to a QueryString."
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

html

Mark 'html' tag as 'like'

Mark 'html' tag as 'ignore'

serialize

Mark 'serialize' tag as 'like'

Mark 'serialize' tag as 'ignore'

0 0 0 0


1.19k
Views
A simple way to cache slow functions in C#
By Yrlec   October 08, 2010 7:50 PM

"A set of methods which helps you extend your functions so that they cache their result after execution."
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

cache

Mark 'cache' tag as 'like'

Mark 'cache' tag as 'ignore'

functional

Mark 'functional' tag as 'like'

Mark 'functional' tag as 'ignore'

0 0 0 1


1.32k
Views
Removing properties from the model state the typed way in ASP.NET MVC
By @lennybacon   September 08, 2010 12:27 AM

"An extension method to remove properties from the model state the typed way in ASP.NET MVC"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 0 0 2


856
Views
Using DynamicObject to get a value from the Request.Params
By @fredrikn "I'm the master"  July 23, 2010 3:16 PM

"Get a Request.Params value by taking advantage of the DynamicObject to make the code look more static"
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

dynamic

Mark 'dynamic' tag as 'like'

Mark 'dynamic' tag as 'ignore'

razor

Mark 'razor' tag as 'like'

Mark 'razor' tag as 'ignore'

0 2 0 0


878
Views
GZIP your Actions in MVC if not used as standard in IIS7 or only use IIS6
By @johannormen "Code Contributor"  July 20, 2010 8:33 PM

"Action FIlter for MVC to GZIP your reults if not turned on as default in IIS7 or if you use IIS6"
actionfilter

Mark 'actionfilter' tag as 'like'

Mark 'actionfilter' tag as 'ignore'

asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

aspmvc

Mark 'aspmvc' tag as 'like'

Mark 'aspmvc' tag as 'ignore'

c#

Mark 'c#' tag as 'like'

Mark 'c#' tag as 'ignore'

mvc

Mark 'mvc' tag as 'like'

Mark 'mvc' tag as 'ignore'

0 0 0 1


948
Views
Redirect Permanent from a non-www to a www using ASP.NET 4.0
By @fredrikn "I'm the master"  July 12, 2010 5:41 PM
asp.net

Mark 'asp.net' tag as 'like'

Mark 'asp.net' tag as 'ignore'

redirect

Mark 'redirect' tag as 'like'

Mark 'redirect' tag as 'ignore'

url

Mark 'url' tag as 'like'

Mark 'url' tag as 'ignore'

0 0 0 2


Squeed
Made by: Fredrik Normén 2010