rastkocvetkovic
Programmer
Is there a possibility to decide which web_page.asp to include based on a variable. Because in my example, the thing doesn't work at all. Please help me, I'm in a hurry.
Problem (Variable Content is previosly set):
<%
If Content = "clanki_upravljanje_clankov" Then
%>
<!--#include file="_clanki_upravljanje_clankov.asp" -->
<%
ElseIf Content = "clanki_vnesi_nov_clanek" Then
%>
<!--#include file="_clanki_vnesi_nov_clanek.asp" -->
<%
ElseIf Content = "kategorije_pregled_clankov" Then
%>
<!--#include file="_kategorije_pregled_clankov.asp" -->
<%
Else
%>
<!--#include file="_prva_stran.asp" -->
<%
End If
%>
Problem (Variable Content is previosly set):
<%
If Content = "clanki_upravljanje_clankov" Then
%>
<!--#include file="_clanki_upravljanje_clankov.asp" -->
<%
ElseIf Content = "clanki_vnesi_nov_clanek" Then
%>
<!--#include file="_clanki_vnesi_nov_clanek.asp" -->
<%
ElseIf Content = "kategorije_pregled_clankov" Then
%>
<!--#include file="_kategorije_pregled_clankov.asp" -->
<%
Else
%>
<!--#include file="_prva_stran.asp" -->
<%
End If
%>