Hi guys,
I have line of text on my asp page that changes depending on the querystring. I have it working using the code below, but I am sure it is primitive like my coding skills. Can someone show me the cool way to write this please?
<% if groups = "p1" Then
response.write"Participating countries"
end if %>
<% if groups = "p2" Then
response.write"Work between first and second RCM"
end if %>
<% if groups = "p3" Then
response.write"Work between second and third RCM"
end if %>
<% if groups = "p4" Then
response.write"Procedures"
end if %>
<% if groups = "p5" Then
response.write"Data, results and progress reports,"
end if %>
<% if groups = "p6" Then
response.write"Central evaluation of results"
end if %>
<% if groups = "p7" Then
response.write"Bibliographic references"
end if %>
<% if groups = "p8" Then
response.write"Papers originated"
end if %>
<% if groups = "p9" Then
response.write"Draft TECDOC of the CRP"
end if %>
'groups' is of course a variable.
I have line of text on my asp page that changes depending on the querystring. I have it working using the code below, but I am sure it is primitive like my coding skills. Can someone show me the cool way to write this please?
<% if groups = "p1" Then
response.write"Participating countries"
end if %>
<% if groups = "p2" Then
response.write"Work between first and second RCM"
end if %>
<% if groups = "p3" Then
response.write"Work between second and third RCM"
end if %>
<% if groups = "p4" Then
response.write"Procedures"
end if %>
<% if groups = "p5" Then
response.write"Data, results and progress reports,"
end if %>
<% if groups = "p6" Then
response.write"Central evaluation of results"
end if %>
<% if groups = "p7" Then
response.write"Bibliographic references"
end if %>
<% if groups = "p8" Then
response.write"Papers originated"
end if %>
<% if groups = "p9" Then
response.write"Draft TECDOC of the CRP"
end if %>
'groups' is of course a variable.