rastkocvetkovic,
ASP pages work a bit differently then how you're trying to use them...
The first thing the asp engine does when processing a page is look for include files. Since you can put them anywhere in your document, it'll scan the whole document before processing any part of it. It looks for the pound sign "#" and then includes any pages declared. After that, it starts processing the code. So your page might as well have been written like this to get the exact same results:
*******************************************************
<!--#include file="_clanki_upravljanje_clankov.asp" -->
<!--#include file="_clanki_vnesi_nov_clanek.asp" -->
<!--#include file="_kategorije_pregled_clankov.asp" -->
<!--#include file="_prva_stran.asp" -->
<%
If Content = "clanki_upravljanje_clankov" Then
ElseIf Content = "clanki_vnesi_nov_clanek" Then
ElseIf Content = "kategorije_pregled_clankov" Then
Else
End If
%>
******************************************************
Now there is somthing you can do to include files without actually including them. It won't work exactly like how you wanted this too, however it should proove usefull if you are actually on an IIS server rather than a PWS machine.
You can use: Server.Transfer(somePage.asp)
Or you can use: Server.Execute(somePage.asp)
for transfer it'll work similar to response.redirect except I believe for this it'll carry everything from your current page to the new one. (I could be wrong on that though).
for Execute, it'll go to the specified page, execute the code on it and return to the current one. Again, I'm not positive, but I think it may work like an include where it'll take the data from that page and use it in your current one. It should carry the info back to the originating page. You have to try it to be sure though.
so you could type somthing like this:
********************************************************
<%
If Content = "clanki_upravljanje_clankov" Then
Server.Execute("_clanki_upravljanje_clankov.asp"
ElseIf Content = "clanki_vnesi_nov_clanek" Then
Server.Execute("_clanki_vnesi_nov_clanek.asp"
ElseIf Content = "kategorije_pregled_clankov" Then
Server.Execute("_kategorije_pregled_clankov.asp"
Else
Server.Execute("_prva_stran.asp"
End If
%>
*********************************************************
If this isn't exactly it, you might have to mess around with it just a little. Like removing or adding quotes around the actual page name within the parenthesis and such. But I think this is right.
Hope this helps.
-Ovatvvon :-Q