I'm not normally one for doing things for people rather than telling them how to do it, but as it is so simple:
Code:
<%
id = Request.QueryString("id")
Select Case id
Case "1"
Response.Write "Layout 1"
Case "2"
Response.Write "Layout 2"
Case Else
%>
<li><a href="layouts.asp?id=1">Layout 1</a></li>
<li><a href="layouts.asp?id=2">Layout 2</a></li>
<%
End Select
This could have been done with
Code:
If ... Then
...
Else If ... Then
...
Else If ... Then
...
Else
...
End If
but Select Case makes this simpler.