By tag: MadsKristensen
0
kicks
Subkismet 1.0 Released
Subkismet is a set of tools as a framework to fight against spam in .NET applications. Keyvan announces the first public release of this open source framework.
0
kicks
Stock quote class in C#
Get real-time stock quotes with this simple class. It updates it self every minute with the latest quotes. Easy to modify.
0
kicks
Universal data type checker
A method that checks what types a string can be converted into. It could be integers, guids, booleans, enums etc.
0
kicks
Access browser information server-side
Exposes JavaScript variables to the C# code such as WindowHeight, ColorDepth or whatever JavaScript variable you can think of. Plug 'n play HttpModule - no code required.
0
kicks
HttpModule for query string encryption
Plug this simple HttpModule to your existing web application and all your query strings will automatically be encrypted without you have to change your code.
0
kicks
Keep the content-type in sync
This method will add a meta-tag that specifies the same content-type as the HTTP header does. That way you just have to change the encoding in the web.config and it will automatically change the meta-tag accordingly.
0
kicks
Do postbacks with parameters in JavaScript
How to cause a postback with Javascript on any element, and pass through parameters
0
kicks
Choose a standard number format
The problem begins when your web application is set to automatically resolve the culture through the browser. It is by default. All these different cultures have different ways to look at numbers and decimals and that’s all built directly into the .NET Framework.
0
kicks
Block DoS attacks easily in ASP.NET
The module is a high performance and lightweight protection from Denial-of-Service attacks and very easy to implement.
0
kicks
Use the thread pool in ASP.NET
The thread pool gives you an easy and safe way for creating multithreaded applications, and even though the stateless nature of the Internet isn’t the best place for multithreading, it can still be the right thing to do for certain scenarios.
0
kicks
Block IP addresses from your website
When an IP address is blocked it stops the response and sends a “403 Forbidden” header.
0
kicks
Get the HTTP status code from a URL
By using this simple method it is very easy to build your own web server checking tool.
0
kicks
A simple factory using Generics
This simple factory design can be used for a variety of other purposes and it adds a great layer of abstraction to your code and makes it easier to maintain and reuse.