ASP include?
recently just moved from PHP to asp, and I know that in PHP I could write a switch to include files and save it as a php file. When i wanted a page i would just change the id at the end of the url. In the example below, whatever.php?id=1 would display mypage1.php. My question is how does one do this in ASP. I think its possible.
ie.
switch($_GET['id']){
case "page1":
include("mypage1.php");
break;
case "page2":
include("mypage2.php");
break;
case "page3":
include("mypage3.php");
break;
Last edited by kw91 : 08-07-2006 at 01:10 AM.
|