How Do I Check If a Number Is Even Or Odd in ASP?

Posted by: Imar Spaanjaars at Saturday, November 08, 2003 8:52:05 PM in: Classic ASP
Use this snippet to check whether a given number (passed in as numberToCheck is even or odd.
Read on ...

Preventing a Page from Being Cached by Browsers and Proxy Servers

Posted by: Imar Spaanjaars at Sunday, November 02, 2003 5:30:19 PM in: Classic ASP
Add the following code to the top of your ASP page to prevent it from being cached by the browser or any intermediate proxy or caching server. This will force the browser to retrieve a new copy of the page, everytime it needs to display it.
Read on ...

How Do I Detect If the Current User is Logged In?

Posted by: Imar Spaanjaars at Sunday, September 28, 2003 7:42:41 PM in: ASP.NET 1.x
This snippets demonstrates how to check whether a user is logged in or not. The code also shows how you can extract the UserData from the Ticket that is retrieved from the User Identity.
Read on ...

A Write-Only Property in C#

Posted by: Imar Spaanjaars at Thursday, September 25, 2003 7:39:08 PM in: C#
This sample code shows how to create a simple Write-Only string property in a C# class.
Read on ...

A Read-Only Property in C#

Posted by: Imar Spaanjaars at Thursday, September 25, 2003 7:38:28 PM in: C#
This sample code shows how to create a simple Read-Only string property in a C# class.
Read on ...

A Property in C#

Posted by: Imar Spaanjaars at Thursday, September 25, 2003 7:38:13 PM in: C#
This sample code shows how to create a simple string property in a C# class.
Read on ... 1234