• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

10.7. Exhibit A: default.asp

<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<!-- #INCLUDE FILE="playlist.asp" -->
<!-- #INCLUDE FILE="display.asp" -->
<%

	'Constants
	Const MEDIA_LIBRARY_URL     = "mp3"
	Const MEDIA_LIBRARY_PATH     = "c:\media_library"
	Const TEMP_URL         = "temp"
	Const TEMP_PATH         = "c:\inetpub\wwwroot\temp"
%>

<html>
<head>
<title>Homehacking MP3 Jukebox for Geeks</title>
</head>

<body>
<%
	If Request.QueryString.Count = 0 Then
	   DisplayArtists
	Else
	   Select Case Request.QueryString("action")
	   Case "artist"
		 DisplayAlbums Request.QueryString("artist")
	   Case "play"
		 Select Case Request.QueryString("type")
		 Case "artist"
		   Response.Redirect GenerateArtistPlaylist(Request.QueryString("artist"))
		 Case "album"
		   Response.Redirect GenerateAlbumPlaylist(Request.QueryString("artist"),
Request.QueryString("album"))
		 Case "song"
		   Response.Redirect GenerateSongPlaylist(Request.QueryString("artist"),
Request.QueryString("album"),Request.QueryString("song"))
		 End Select
	   End Select
	 End If
%>
</body>

</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint