PHP > ASP Select Case Statement

Associate
Joined
12 Aug 2004
Posts
1,009
Location
Glasgow, Scotland
Hi there,

I was wondering if anyone could give me a hand with converting a php select case statement into an asp one?

I normally use php for coding and have been using this for a while on various websites i've done:

Code:
<?php

	switch($page)
	{
		default:
			include("home.php");
			break;
			
		case aboutme:
			include("aboutme.php");
			break;
			
		case portfolio:
			include("portfolio.php");
			break;
			
		case links:
			include("links.php");
			break;
			
		case contact:
			include("contact.php");
			break;
			
		case thankyou:
			include("thankyou.php");
			break;
	}

?>

...but not to sure how to convert it into asp?
 
Hi mate,

Thanks for replying, that definetly looks different from the way I was (unsuccessfully) trying it earlier so i'll give that a go :) :)

Thanks again,

Steven
 
Back
Top Bottom